Skip to content

Commit

Permalink
fix(tests): fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
noamokman committed Aug 25, 2020
1 parent 2c4c9b3 commit b0647b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions __tests__/main.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ describe('express-json-error-handler', () => {
status: jest.fn()
};

const err: Error & { statusCode?: number } = new Error('error');
const err: Error & { status?: number } = new Error('error');

err.statusCode = 214;
err.status = 214;

errorHandler(err, null as any, res as any, null as any);

Expand Down

0 comments on commit b0647b8

Please sign in to comment.