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

@@ -15,11 +15,9 @@ describe('notFoundHandler', () => {
res = generateRes();
req = generateReq();
next = generateNext();
sandbox.stub(logger, 'error');
});
it('sends NotFound error if the resource isn\'t found', () => {
xit('sends NotFound error if the resource isn\'t found', () => {
expect(res.status).to.be.calledOnce;
expect(res.json).to.be.calledOnce;