diff --git a/packages/math/src/decimal.spec.ts b/packages/math/src/decimal.spec.ts index e8f70330..a3778391 100644 --- a/packages/math/src/decimal.spec.ts +++ b/packages/math/src/decimal.spec.ts @@ -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.", ); }); });