add example apidoc comments, add notFound middleware

This commit is contained in:
Matteo Pagliazzi
2015-11-17 16:48:50 +01:00
parent 61948e1ca5
commit aa1b046cf2
9 changed files with 102 additions and 21 deletions

View File

@@ -88,7 +88,7 @@ describe('errorHandler', () => {
errorHandler(error, req, res, next);
expect(logger.error).to.be.calledOnce;
expect(logger.error).to.be.calledWith(error.stack, {
expect(logger.error).to.be.calledWithExactly(error.stack, {
originalUrl: req.originalUrl,
headers: req.headers,
body: req.body,