mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-06-24 05:36:39 -05:00
12 lines
313 B
TypeScript
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);
|
|
});
|
|
});
|