Skip to content

Commit

Permalink
Added tests for HttpError.js
Browse files Browse the repository at this point in the history
  • Loading branch information
chentsulin committed Dec 4, 2016
1 parent 391d507 commit e13189a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/HttpError.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import HttpError from '../src/HttpError';

describe('HttpError', () => {
it('should provide accessible status', () => {
const error = new HttpError(404);
expect(error.status).toBe(404);
});
});

0 comments on commit e13189a

Please sign in to comment.