test: use exact string match for error

This commit is contained in:
Tien Nguyen Khac 2022-06-25 23:18:41 +12:00
parent bd8c2b8c18
commit 3175384a1f

View File

@ -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.",
);
});
});