refactor(forms): isolate submission persistence

This commit is contained in:
2026-08-09 21:13:20 +07:00 Unverified
parent 59140488f6
commit 8756a2ce8a
5 changed files with 169 additions and 112 deletions
+9
View File
@@ -0,0 +1,9 @@
import { describe, expect, test } from "bun:test";
import { formatQueuePosition } from "@/lib/form/form-client";
describe("submission queue position", () => {
test("keeps the database one-based position unchanged", () => {
expect(formatQueuePosition(1)).toBe("#1");
expect(formatQueuePosition(12)).toBe("#12");
});
});