comment errors according to apidoc, add new tests and fix existing ones

This commit is contained in:
Matteo Pagliazzi
2015-11-17 19:22:47 +01:00
parent 846800ccc9
commit 2a51117d21
5 changed files with 80 additions and 28 deletions

View File

@@ -31,7 +31,7 @@ describe('errorHandler', () => {
expect(res.status).to.be.calledWith(500);
expect(res.json).to.be.calledWith({
error: 'InternalServerError',
message: 'Internal server error.',
message: 'An unexpected error occurred.',
});
});
@@ -63,7 +63,7 @@ describe('errorHandler', () => {
expect(res.status).to.be.calledWith(500);
expect(res.json).to.be.calledWith({
error: 'InternalServerError',
message: 'Internal server error.',
message: 'An unexpected error occurred.',
});
});