Skip to content

Commit f186577

Browse files
fix: ensure the rejection test cannot false-pass
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 398563b commit f186577

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/client.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ describe('client_test', function () {
2727
const badClient = new strava.client(BAD_TOKEN)
2828
try {
2929
await badClient.athlete.get({})
30+
should.fail('Expected athlete.get to reject with StatusCodeError')
3031
} catch (err) {
3132
should(err).be.instanceOf(StatusCodeError)
3233
should(err.statusCode).equal(401)

0 commit comments

Comments
 (0)