Skip to content

Commit

Permalink
fixup! fix: make ErrorBase always capture stack trace
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed May 1, 2024
1 parent 32dd824 commit 814cb93
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,4 +271,8 @@ t.test('Unexpected www-authenticate error', t => {
)
})

t.test('retries certain types')
t.test('error can take headers object', (t) => {
const e = new errors.HttpErrorBase('GET', { headers: { a: 1 } })
t.strictSame(e.headers, { a: 1 })
t.end()
})

0 comments on commit 814cb93

Please sign in to comment.