Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Collina <hello@matteocollina.com>
  • Loading branch information
mcollina committed Jan 25, 2023
1 parent e9a1ebb commit ea85ea7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/fetch/abort.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ test('allows aborting with custom errors', { skip: semver.satisfies(process.vers
const cause = err.cause
t.equal(cause.name, 'HeadersTimeoutError')
t.equal(cause.code, 'UND_ERR_HEADERS_TIMEOUT')
} else if (err.name = 'TimeoutError') {
t.equal(cause.code, DOMException.TIMEOUT_ERR)
} else if (err.name === 'TimeoutError') {
t.equal(err.code, DOMException.TIMEOUT_ERR)
t.equal(err.cause, undefined)
} else {
t.error(err)
Expand Down

0 comments on commit ea85ea7

Please sign in to comment.