Browse Source

OIDC config test fix

master
Dean 4 years ago
parent
commit
5a97b71403
  1. 4
      packages/backend-core/src/middleware/passport/tests/oidc.spec.js

4
packages/backend-core/src/middleware/passport/tests/oidc.spec.js

@ -48,8 +48,8 @@ describe("oidc", () => {
it("should create successfully create an oidc strategy", async () => {
const oidc = require("../oidc")
await oidc.strategyFactory(oidcConfig, callbackUrl)
const enrichedConfig = await oidc.fetchStrategyConfig(oidcConfig, callbackUrl)
await oidc.strategyFactory(enrichedConfig, callbackUrl)
expect(mockFetch).toHaveBeenCalledWith(oidcConfig.configUrl)

Loading…
Cancel
Save