@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 12 lines 474 Bytes
Raw
1 import { describe, expect, it } from "vite-plus/test";
2
3 import { formatCompactDiffCount } from "./DiffStatLabel";
4
5 describe("formatCompactDiffCount", () => {
6 it("promotes counts when rounding reaches the next suffix", () => {
7 expect(formatCompactDiffCount(999_499)).toBe("999k");
8 expect(formatCompactDiffCount(999_500)).toBe("1m");
9 expect(formatCompactDiffCount(999_499_999)).toBe("999m");
10 expect(formatCompactDiffCount(999_500_000)).toBe("1b");
11 });
12 });