Refactor Study Desk application structure

This commit is contained in:
Elijah 2026-08-07 19:31:23 -07:00
parent faaccf8a7e
commit 089439ed90
145 changed files with 8087 additions and 3412 deletions

View file

@ -0,0 +1,12 @@
import { describe, expect, it } from "vitest";
import { shareTargetSchema } from "./shareSchemas";
describe("shareTargetSchema", () => {
it.each(["DECK", "QUIZ", "GROUP"])("accepts target type %s", (targetType) => {
expect(shareTargetSchema.safeParse({ targetType, contentId: "id" }).success).toBe(true);
});
it.each(["", "CLASS", "deck", null])("rejects target type %s", (targetType) => {
expect(shareTargetSchema.safeParse({ targetType, contentId: "id" }).success).toBe(false);
});
});