sendou.ink/app/features/tournament/core/sets.server.test.ts
Kalle 6a3ec6a654
Some checks are pending
E2E Tests / e2e (push) Waiting to run
Tests and checks on push / run-checks-and-tests (push) Waiting to run
Updates translation progress / update-translation-progress-issue (push) Waiting to run
Various small bug fixes
2026-06-08 22:04:43 +03:00

12 lines
313 B
TypeScript

import { describe, expect, it } from "vitest";
import { winCounts } from "./sets.server";
describe("winCounts", () => {
it("returns 0% (not NaN) when there are no played sets", () => {
const result = winCounts([]);
expect(result.sets.percentage).toBe(0);
expect(result.maps.percentage).toBe(0);
});
});