OIDC config test fix
This commit is contained in:
parent
86063063f3
commit
129a5c2672
|
@ -48,8 +48,8 @@ describe("oidc", () => {
|
||||||
|
|
||||||
it("should create successfully create an oidc strategy", async () => {
|
it("should create successfully create an oidc strategy", async () => {
|
||||||
const oidc = require("../oidc")
|
const oidc = require("../oidc")
|
||||||
|
const enrichedConfig = await oidc.fetchStrategyConfig(oidcConfig, callbackUrl)
|
||||||
await oidc.strategyFactory(oidcConfig, callbackUrl)
|
await oidc.strategyFactory(enrichedConfig, callbackUrl)
|
||||||
|
|
||||||
expect(mockFetch).toHaveBeenCalledWith(oidcConfig.configUrl)
|
expect(mockFetch).toHaveBeenCalledWith(oidcConfig.configUrl)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue