lint: fix biome issues in new test files and helpers
CI / check (push) Failing after 34s
CI / preflight (push) Skipped
CI / deploy (push) Skipped

This commit is contained in:
openhands committed 2026-09-21 18:19:39 +02:00
1 parent 99eb3af17b
commit 93862c2275
41 files changed
+488 -314

No files matched your search

+3 -3
View File
@@ -32,8 +32,8 @@ vi.mock("@/lib/services/staff-activity", () => ({
logStaffActivity: mockLogStaffActivity,
}));
import { deleteShout } from "./admin-radio-moderation";
import { RadioShouts } from "@/lib/db";
import { deleteShout } from "./admin-radio-moderation";
function form(data: Record<string, string>): FormData {
const fd = new FormData();
@@ -92,9 +92,9 @@ describe("deleteShout", () => {
});
it("swallows DB failures but still revalidates", async () => {
fakeDbConfig.fail = (kind: string) => (kind === "delete" ? true : false);
fakeDbConfig.fail = (kind: string) => kind === "delete";
await deleteShout(form({ id: "3" }));
expect(mockLogStaffActivity).not.toHaveBeenCalled();
expect(mockRevalidatePath).toHaveBeenCalledWith("/admin/radio/moderation");
});
});
});