Skip to content

Commit

Permalink
separate test
Browse files Browse the repository at this point in the history
  • Loading branch information
dskloetd committed Dec 1, 2023
1 parent eba7c5a commit 6c3383b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/utils/src/parser/token.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,9 @@ describe("TokenAmountV2 with 18 decimals", () => {
expect(
TokenAmountV2.fromString({ token: token, amount: "123asdf$#@~!" }),
).toBe(FromStringToTokenError.InvalidFormat);
});

it("does not support scientific notation", () => {
const callToNumber = () =>
TokenAmountV2.fromNumber({ token: token, amount: 1e-9 });
expect(callToNumber).toThrow(
Expand Down

0 comments on commit 6c3383b

Please sign in to comment.