From 6491f35a193d6d7617fa911d91da61d35875e920 Mon Sep 17 00:00:00 2001 From: Chris Barth Date: Tue, 26 Mar 2024 08:21:56 -0500 Subject: [PATCH] Fix test --- test/multiSamlStrategy.spec.ts | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/test/multiSamlStrategy.spec.ts b/test/multiSamlStrategy.spec.ts index 27c481fd..e123ee24 100644 --- a/test/multiSamlStrategy.spec.ts +++ b/test/multiSamlStrategy.spec.ts @@ -25,16 +25,13 @@ describe("MultiSamlStrategy()", function () { expect(strategy).to.be.an.instanceOf(Strategy); }); - it("does not require issuer in the SamlOptionsCallback", function () { + it("does not require any properties in the SamlOptionsCallback", function () { // eslint-disable-next-line @typescript-eslint/no-unused-vars - const getSamlOptions: StrategyOptionsCallback = ( - // eslint-disable-next-line @typescript-eslint/no-unused-vars - err: Error | null, - // eslint-disable-next-line @typescript-eslint/no-unused-vars - samlOptions?: Partial - ) => { + const getSamlOptions: StrategyOptionsCallback = (err, samlOptions) => { // do nothing; the return type is void }; + + getSamlOptions(null, {}); }); it("throws if wrong finder is provided", function () {