Skip to content

Commit

Permalink
score tests: fix non-integer cp val
Browse files Browse the repository at this point in the history
  • Loading branch information
Ekatwikz committed May 17, 2024
1 parent 6406c70 commit 3eb5d07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/tests/score.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ test("should format a negative cp score correctly", () => {
});

test("should truncate a large cp score correctly", () => {
expect(formatScore({ type: "cp", value: 12345.67 }, false)).toBe("+99.0");
expect(formatScore({ type: "cp", value: 20000 }, false)).toBe("+99.0");
});

test("should format a mate score correctly", () => {
Expand Down

0 comments on commit 3eb5d07

Please sign in to comment.