From 020c9b78a6d2ce4af2956d20d361c9a838b67156 Mon Sep 17 00:00:00 2001 From: lissavxo Date: Mon, 20 May 2024 18:00:43 -0300 Subject: [PATCH] tests: fix number case --- react/lib/tests/number.test.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/react/lib/tests/number.test.ts b/react/lib/tests/number.test.ts index fb5ebd1d..24827678 100644 --- a/react/lib/tests/number.test.ts +++ b/react/lib/tests/number.test.ts @@ -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', () => {