Skip to content

Commit 2116cd6

Browse files
committed
add tests
1 parent 467e7da commit 2116cd6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/http-error.js

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ const { HttpError } = require('../dist')
77
test('isHttpError', () => {
88
expect(HttpError.isHttpError(HttpError.badRequest('message'))).toBe(true)
99

10+
expect(HttpError.isHttpError(null)).toBe(false)
11+
expect(HttpError.isHttpError(undefined)).toBe(false)
1012
expect(HttpError.isHttpError(new Error('message'))).toBe(false)
1113
})
1214

0 commit comments

Comments
 (0)