Fixing test case.
This commit is contained in:
parent
8b89824762
commit
0a9344622a
|
@ -367,7 +367,7 @@ describe("/api/global/auth", () => {
|
|||
|
||||
const res = await config.api.configs.OIDCCallback(configId, preAuthRes)
|
||||
|
||||
expect(events.auth.login).toBeCalledWith("oidc")
|
||||
expect(events.auth.login).toBeCalledWith("oidc", "oauth@example.com")
|
||||
expect(events.auth.login).toBeCalledTimes(1)
|
||||
expect(res.status).toBe(302)
|
||||
const location: string = res.get("location")
|
||||
|
|
Loading…
Reference in New Issue