From 2d642d0d62f47a6360678c3548c5664de4ab41cb Mon Sep 17 00:00:00 2001 From: Yaroslav Bolyukin Date: Fri, 12 Feb 2021 06:59:28 +0000 Subject: [PATCH] tests: fix bigint equality check --- --- a/tests/src/overflow.test.ts +++ b/tests/src/overflow.test.ts @@ -55,13 +55,13 @@ await transferFromExpectSuccess(fungibleCollectionId, 0, bob, alice, charlie, U128_MAX, 'Fungible'); expect(await getFungibleBalance(fungibleCollectionId, charlie.address)).to.equal(U128_MAX); - expect(await getAllowance(fungibleCollectionId, 0, alice.address, bob.address)).to.equal(0n); + expect((await getAllowance(fungibleCollectionId, 0, alice.address, bob.address)).toString()).to.equal('0'); await createFungibleItemExpectSuccess(alice, fungibleCollectionId, { Value: U128_MAX }); await approveExpectSuccess(fungibleCollectionId, 0, alice, bob, 1n); await transferFromExpectFail(fungibleCollectionId, 0, bob, alice, charlie, 1); expect(await getFungibleBalance(fungibleCollectionId, charlie.address)).to.equal(U128_MAX); - expect(await getAllowance(fungibleCollectionId, 0, alice.address, bob.address)).to.equal(0n); + expect((await getAllowance(fungibleCollectionId, 0, alice.address, bob.address)).toString()).to.equal('1'); }); }); -- gitstuff