express-partial-response icon indicating copy to clipboard operation
express-partial-response copied to clipboard

Write unit tests

Open nemtsov opened this issue 7 years ago • 3 comments

To make editing and refactoring safer:

  • [ ] Write unit tests to cover the different use-cases
  • [ ] Ensure tests run when npm test is called
  • [ ] Ensure a failure of a single test will return npm test with a non-zero error code

nemtsov avatar Mar 06 '18 15:03 nemtsov

@qm3ster are you, by any chance, interested in taking this one?

nemtsov avatar Mar 06 '18 15:03 nemtsov

I almost did this by myself, but then decided not to. Shouldn't they be integration tests though? (run real express, do the example, check return)

qm3ster avatar Mar 06 '18 16:03 qm3ster

Shouldn't they be integration tests though?

That sounds even better.

nemtsov avatar Mar 06 '18 16:03 nemtsov