Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed May 1, 2024
1 parent a980d12 commit 2ba414e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/modules/PassportModule.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ describe("Faucet module: passport", () => {
boostFactor: {
2: 4,
},
requireMinScore: 5,
skipHostingCheckScore: 10,
skipProxyCheckScore: 20,
allowGuestRefresh: true,
Expand All @@ -67,7 +68,7 @@ describe("Faucet module: passport", () => {
expect(clientConfig.modules['passport'].refreshTimeout).to.equal(30, "client config missmatch: refreshTimeout");
expect(clientConfig.modules['passport'].manualVerification).to.equal(true, "client config missmatch: manualVerification");
expect(JSON.stringify(clientConfig.modules['passport'].stampScoring)).to.equal(JSON.stringify((faucetConfig.modules["passport"] as any).stampScoring), "client config missmatch: stampScoring");
expect(JSON.stringify(clientConfig.modules['passport'].overrideScores)).to.equal(JSON.stringify([10, 20]), "client config missmatch: overrideScores");
expect(JSON.stringify(clientConfig.modules['passport'].overrideScores)).to.equal(JSON.stringify([10, 20, 5]), "client config missmatch: overrideScores");
expect(clientConfig.modules['passport'].guestRefresh).to.equal(60, "client config missmatch: guestRefresh");
}).timeout(6000); // might take longer than the other passport tests, because the didkit lib is loaded when the module gets enabled first

Expand Down

0 comments on commit 2ba414e

Please sign in to comment.