From 3175384a1f317a5e6f4528a3169ad8daa22cdbc5 Mon Sep 17 00:00:00 2001 From: Tien Nguyen Khac Date: Sat, 25 Jun 2022 23:18:41 +1200 Subject: [PATCH] test: use exact string match for error --- packages/math/src/decimal.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/math/src/decimal.spec.ts b/packages/math/src/decimal.spec.ts index e8f7033054..a37783913b 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.", ); }); });