test: use exact string match for error
This commit is contained in:
parent
bd8c2b8c18
commit
3175384a1f
@ -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.",
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user