Skip to content

Commit

Permalink
test(secret): check error message (#76)
Browse files Browse the repository at this point in the history
Signed-off-by: Frazer Smith <frazer.dev@icloud.com>
  • Loading branch information
Fdawgs authored Dec 30, 2024
1 parent 0bac8c1 commit 79bdf2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/secret.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ test('Tokens.secret: should handle error, Promise', t => {

new Tokens().secret().catch(err => {
t.ok(err instanceof Error)
t.ok(err.message = 'oh no')
t.ok(err.message === 'oh no')
})
})

Expand All @@ -104,6 +104,6 @@ test('Tokens.secret: should handle error, callback', t => {

new Tokens().secret(function (err, _secret) {
t.ok(err instanceof Error)
t.ok(err.message = 'oh no')
t.ok(err.message === 'oh no')
})
})

0 comments on commit 79bdf2d

Please sign in to comment.