Skip to content

Commit

Permalink
test: use exact string match for error
Browse files Browse the repository at this point in the history
  • Loading branch information
tien committed Jun 25, 2022
1 parent bd8c2b8 commit 3175384
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/math/src/decimal.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ describe("Decimal", () => {

it("throws for atomics that are not non-negative integers", () => {
expect(() => Decimal.fromAtomics("-1", 0)).toThrowError(
/invalid string format. Only non-negative integers in decimal representation supported/i,
"Invalid string format. Only non-negative integers in decimal representation supported.",
);
});
});
Expand Down

0 comments on commit 3175384

Please sign in to comment.