From e45eb066b70626e63b3861cdba84dbb45e40e67c Mon Sep 17 00:00:00 2001 From: Pankaj Sha Date: Fri, 27 Dec 2024 23:37:10 +0530 Subject: [PATCH] fix: change order of middleware creation as test was failing --- .../middlewares/skipAuthenticateForOnboardingExtension.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/middlewares/skipAuthenticateForOnboardingExtension.test.ts b/test/unit/middlewares/skipAuthenticateForOnboardingExtension.test.ts index 83d4526d5..b613fc3c6 100644 --- a/test/unit/middlewares/skipAuthenticateForOnboardingExtension.test.ts +++ b/test/unit/middlewares/skipAuthenticateForOnboardingExtension.test.ts @@ -7,9 +7,9 @@ describe("skipAuthenticateForOnboardingExtensionRequest Middleware", () => { let req, res, next, authenticate: sinon.SinonSpy, verifyDiscordBot: sinon.SinonSpy; let middleware; beforeEach(() => { - middleware = skipAuthenticateForOnboardingExtensionRequest(authenticate, verifyDiscordBot); authenticate = sinon.spy(); verifyDiscordBot = sinon.spy(); + middleware = skipAuthenticateForOnboardingExtensionRequest(authenticate, verifyDiscordBot); req = { body:{}, query:{},