Commit Graph

12 Commits

Author SHA1 Message Date
Matteo Pagliazzi
80f791c86b add tests, move CustomError to common, fix casting 2016-03-03 00:16:28 +01:00
Blade Barringer
f80f41f764 lint: Correct linting errors in v3 tests 2016-01-03 09:47:27 -06:00
Matteo Pagliazzi
1bf91030c6 format express-validator errors 2015-11-23 21:34:21 +01:00
Matteo Pagliazzi
4a941deece remove success field from json responses 2015-11-23 21:04:21 +01:00
Matteo Pagliazzi
645095e58f fix errorHandler tests, add tests for res.respond 2015-11-23 13:28:25 +01:00
Matteo Pagliazzi
5c33a404fb handle mongoose validation errors, fix bug in import and add more tests for errors 2015-11-21 15:00:31 +01:00
Matteo Pagliazzi
2a51117d21 comment errors according to apidoc, add new tests and fix existing ones 2015-11-17 19:22:47 +01:00
Matteo Pagliazzi
aa1b046cf2 add example apidoc comments, add notFound middleware 2015-11-17 16:48:50 +01:00
Matteo Pagliazzi
8f9d2a5f9a change to erro handler middleware to log full error object and support express-validator 2015-11-11 10:12:13 +01:00
Matteo Pagliazzi
7dd6eb76c9 add express-validator, add body parser middleware, support some more errors in error handler middleware 2015-11-08 22:48:31 +01:00
Blade Barringer
b323c3b5e9 Use res and req generators in error handler test 2015-11-07 09:26:13 -06:00
Blade Barringer
77d60cd616 Add tests for error handling 2015-11-04 20:49:08 -06:00