fix(housekeeping): complete people workflow fidelity

This commit is contained in:
Simo committed 2026-08-29 14:39:38 +02:00
1 parent 25b76437ff
commit 91c9efcbb4
29 files changed
+1365 -290

No files matched your search

+9 -1
View File
@@ -50,7 +50,7 @@ it("preserves create and delete team payloads plus /admin revalidation", async (
hiddenRank: false,
},
],
["team.change", { action: "delete", teamId: 42 }],
["team.change", { action: "delete", teamId: "42" }],
]);
expect(revalidatePath).toHaveBeenCalledTimes(2);
});
@@ -59,3 +59,11 @@ it("preserves empty rank name as a no-op", async () => {
await createTeam(form({ rankName: "" }));
expect(execute).not.toHaveBeenCalled();
});
it("preserves a team ID above Number.MAX_SAFE_INTEGER", async () => {
await deleteTeam(form({ id: "9007199254740993" }));
expect(execute).toHaveBeenCalledWith(expect.anything(), "team.change", {
action: "delete",
teamId: "9007199254740993",
});
});