Skip to content

Commit

Permalink
Update tests again with async support
Browse files Browse the repository at this point in the history
  • Loading branch information
rolljee committed Nov 7, 2023
1 parent 854c93a commit 731b298
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/passport/passport_strategy.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ describe('OpenIDConnectStrategy', () => {
);
});

it('ignores static state coming from params', function () {
it('ignores static state coming from params', async function () {
const strategy = new Strategy(
{
client: this.client,
Expand All @@ -269,7 +269,7 @@ describe('OpenIDConnectStrategy', () => {
req.session = {};

strategy.redirect = sinon.spy();
strategy.authenticate(req);
await strategy.authenticate(req);

expect(strategy.redirect.calledOnce).to.be.true;
const target = strategy.redirect.firstCall.args[0];
Expand Down

0 comments on commit 731b298

Please sign in to comment.