Fixing test case.

This commit is contained in:
mike12345567 2023-02-27 13:17:42 +00:00
parent 8b89824762
commit 0a9344622a
1 changed files with 1 additions and 1 deletions

View File

@ -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")