Skip to content

Commit

Permalink
fix: modify unit test based on the error message
Browse files Browse the repository at this point in the history
  • Loading branch information
swetabar committed Aug 19, 2024
1 parent 4308ddc commit 1e6874a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ describe('AuthenticationManager', () => {
const context = {};

await expect(manager.authenticate(request, context)).to.be.rejectedWith(NotAuthenticatedError);
expect(logStub.error.calledWith('Failed to authenticate with ErrorAuthHandler: Authentication error')).to.be.true;
expect(logStub.error.calledWith('Failed to authenticate with ErrorAuthHandler:')).to.be.true;
expect(logStub.info.calledWith('No authentication handler was able to authenticate the request')).to.be.true;
});

Expand Down

0 comments on commit 1e6874a

Please sign in to comment.