forked from baron/baron-sso
callback 검증 보강. seed-tenant 추가보강
This commit is contained in:
13
orgfront/src/app/routes.test.tsx
Normal file
13
orgfront/src/app/routes.test.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
import { matchRoutes } from "react-router-dom";
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { ORGFRONT_AUTH_CALLBACK_PATH } from "../lib/authConfig";
|
||||
import { orgFrontRoutes } from "./routes";
|
||||
|
||||
describe("orgfront routes", () => {
|
||||
it("accepts the auth callback path used by the OIDC redirect URI", () => {
|
||||
const matches = matchRoutes(orgFrontRoutes, ORGFRONT_AUTH_CALLBACK_PATH);
|
||||
|
||||
expect(matches).not.toBeNull();
|
||||
expect(matches?.at(-1)?.route.path).toBe(ORGFRONT_AUTH_CALLBACK_PATH);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user