Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
cjbarth committed Mar 26, 2024
1 parent 36004c9 commit 6491f35
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions test/multiSamlStrategy.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<PassportSamlConfig>
) => {
const getSamlOptions: StrategyOptionsCallback = (err, samlOptions) => {
// do nothing; the return type is void
};

getSamlOptions(null, {});
});

it("throws if wrong finder is provided", function () {
Expand Down

0 comments on commit 6491f35

Please sign in to comment.