Skip to content

Commit

Permalink
chore: test cicd coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
markw-deriv committed Apr 2, 2024
1 parent e992423 commit f4d538a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/__test__/format.utils.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { FormatUtils } from "..";

describe("FormatUtils.formatMoney", () => {
test("should format money properly if decimalPlaces is specified", () => {
const output = FormatUtils.formatMoney(3.14256791, { decimalPlaces: 4 });
const output = FormatUtils.formatMoney(3.14256791, { decimalPlaces: 'BROKEN INTENTIONALLY' });
expect(output).toBe("3.1426");

Check failure on line 7 in src/utils/__test__/format.utils.spec.ts

View workflow job for this annotation

GitHub Actions / test

src/utils/__test__/format.utils.spec.ts > FormatUtils.formatMoney > should format money properly if decimalPlaces is specified

AssertionError: expected '3.14256791' to be '3.1426' // Object.is equality - Expected + Received - 3.1426 + 3.14256791 ❯ src/utils/__test__/format.utils.spec.ts:7:24
});

Expand Down

0 comments on commit f4d538a

Please sign in to comment.