From 731b29860c4231e9bb7d552426c377a6cbe70d5d Mon Sep 17 00:00:00 2001 From: rolljee Date: Tue, 7 Nov 2023 16:27:30 +0100 Subject: [PATCH] Update tests again with async support --- test/passport/passport_strategy.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/passport/passport_strategy.test.js b/test/passport/passport_strategy.test.js index 3a7478d1..d66c98bf 100644 --- a/test/passport/passport_strategy.test.js +++ b/test/passport/passport_strategy.test.js @@ -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, @@ -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];