10 lines
332 B
TypeScript
10 lines
332 B
TypeScript
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");
|
|
});
|
|
});
|