Skip to content

Commit

Permalink
chore: update test
Browse files Browse the repository at this point in the history
  • Loading branch information
Benmuiruri committed Feb 17, 2025
1 parent 5ea6044 commit 7e8c791
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/lib/cht-session.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ describe('lib/cht-session.ts', () => {
});

it('throws AuthError for invalid credentials', async () => {
mockAxios.post.rejects({ response: { status: 403 } });
mockAxios.post.rejects({ response: { status: 401 } });

await expect(ChtSession.default.create(mockAuthInfo, 'user', 'wrong_pwd'))
.to.be.rejectedWith('Invalid username or password')
Expand Down

0 comments on commit 7e8c791

Please sign in to comment.