mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-10-01 23:58:36 -05:00
Move app to apps/web-react in pnpm workspace layout
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import { describe, test } from "vitest";
|
||||
import {
|
||||
assertDecodesToDefault,
|
||||
assertRoundTrips,
|
||||
} from "~/modules/search-params/search-params-test-utils";
|
||||
import { adminSearchParams } from "./admin-search-params";
|
||||
|
||||
describe("adminSearchParams", () => {
|
||||
test("round-trips", () => {
|
||||
assertRoundTrips(adminSearchParams, {
|
||||
friendCode: ["1234-5678-9012", "SW-1234-5678-9012", "123456789012"],
|
||||
});
|
||||
});
|
||||
|
||||
test("garbage decodes to default", () => {
|
||||
assertDecodesToDefault(adminSearchParams, "friendCode", [
|
||||
["not-a-friend-code"],
|
||||
["1234-5678"],
|
||||
]);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user