Skip to content

Commit 8b29043

Browse files
only21milcodex
andcommitted
test(web): keep suffix regression checks focused
Co-Authored-By: GPT-6.1 Sol <[email protected]>
1 parent f181746 commit 8b29043

1 file changed

Lines changed: 4 additions & 10 deletions

File tree

‎apps/web/src/components/chat/DiffStatLabel.test.ts‎

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,9 @@ import { formatCompactDiffCount } from "./DiffStatLabel";
44

55
describe("formatCompactDiffCount", () => {
66
it("promotes counts when rounding reaches the next suffix", () => {
7-
expect([
8-
999_499,
9-
999_500,
10-
999_999,
11-
1_000_000,
12-
999_499_999,
13-
999_500_000,
14-
999_999_999,
15-
1_000_000_000,
16-
].map(formatCompactDiffCount)).toEqual(["999k", "1m", "1m", "1m", "999m", "1b", "1b", "1b"]);
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");
1711
});
1812
});

0 commit comments

Comments
 (0)