Skip to content

Commit

Permalink
tests: fix number case
Browse files Browse the repository at this point in the history
  • Loading branch information
lissavxo committed May 20, 2024
1 parent d702166 commit 020c9b7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions react/lib/tests/number.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ describe('resolveNumber', () => {
});

it('should convert float type to BigNumber', () => {
expect(resolveNumber(42.0)).toBeInstanceOf(BigNumber);
expect(resolveNumber(42.5).isEqualTo(42.5)).toBe(true);
const result = resolveNumber(42.8)
expect(result).toBeInstanceOf(BigNumber);
expect(result.isEqualTo(42.8)).toBe(true);
});

it('should convert string representation of float type to BigNumber', () => {
Expand Down

0 comments on commit 020c9b7

Please sign in to comment.