Skip to content

Commit 6768e81

Browse files
committed
Feat: add test to HTTPStatusError
1 parent 835e29e commit 6768e81

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/http-status-error.test.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { HTTPStatusError } from '../src';
2+
3+
describe('HTTPStatusError', () => {
4+
test('it should throw HTTPStatusError', () => {
5+
const errorThrow = () => {
6+
throw new HTTPStatusError('Invalid HTTP status code.');
7+
};
8+
expect(errorThrow).toThrow(HTTPStatusError);
9+
});
10+
});

0 commit comments

Comments
 (0)