Skip to content

Commit fc1d1ad

Browse files
committed
test: update test to use PromptType enum
1 parent 4fc6367 commit fc1d1ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/utils/mapLoginMethodParamsForUrl.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// mapLoginMethodParamsForUrl.test.ts
22
import { describe, expect, it } from "vitest";
33
import { mapLoginMethodParamsForUrl } from "./mapLoginMethodParamsForUrl";
4-
import { LoginMethodParams, Scopes } from "../types";
4+
import { LoginMethodParams, PromptTypes, Scopes } from "../types";
55

66
describe("mapLoginMethodParamsForUrl", () => {
77
it("should map login method params to URL parameters", () => {
@@ -12,7 +12,7 @@ describe("mapLoginMethodParamsForUrl", () => {
1212
redirectURL: "https://example.com",
1313
audience: "audience123",
1414
scope: [Scopes.openid, Scopes.profile],
15-
prompt: "login",
15+
prompt: PromptTypes.login,
1616
lang: "en",
1717
orgCode: "org123",
1818
orgName: "Example Org",

0 commit comments

Comments
 (0)