Skip to content

Commit

Permalink
fix deprecated tap assertion
Browse files Browse the repository at this point in the history
t.deepEqual -> t.same
  • Loading branch information
isaacs committed Apr 23, 2021
1 parent a71a25a commit bca1880
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ t.test('JSON error reporing', t => {
t.equal(err.code, 'E400', 'HTTP code used for err.code')
t.equal(err.statusCode, 400, 'numerical HTTP code available')
t.equal(err.method, 'GET', 'method in error object')
t.deepEqual(err.body, {
t.same(err.body, {
error: 'badarg',
}, 'parsed JSON error response available')
}
Expand Down

0 comments on commit bca1880

Please sign in to comment.