Skip to content

Commit b45f34e

Browse files
committed
remove duped test
1 parent 76977e9 commit b45f34e

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

test/test.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -201,19 +201,6 @@ describe('Subclass Instantiation', function () {
201201
})
202202
})
203203

204-
describe('Prototype Chain Adjustments', function () {
205-
it('CustomError instances should have the correct prototype chain', function () {
206-
class CustomError extends createError.NotFound {}
207-
const err = new CustomError()
208-
assert(err instanceof CustomError)
209-
assert(err instanceof createError.NotFound)
210-
// we don't export ClientError currently
211-
// assert(err instanceof createError.ClientError)
212-
assert(err instanceof createError.HttpError)
213-
assert(err instanceof Error)
214-
})
215-
})
216-
217204
describe('HTTP Errors', function () {
218205
it('createError(status, props)', function () {
219206
var err = createError(404, {

0 commit comments

Comments
 (0)