From c5dca95f893cbc66d7e6d2de234f1411f28e1d19 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Tue, 4 Jul 2017 10:31:07 -0700 Subject: Use .bignumber for BigNumber comparation --- test/token_wrapper_test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/token_wrapper_test.ts') diff --git a/test/token_wrapper_test.ts b/test/token_wrapper_test.ts index 6ac1beb43..06e373bfa 100644 --- a/test/token_wrapper_test.ts +++ b/test/token_wrapper_test.ts @@ -273,7 +273,7 @@ describe('TokenWrapper', () => { const args = event.args as TransferContractEventArgs; expect(args._from).to.be.equal(coinbase); expect(args._to).to.be.equal(addressWithoutFunds); - expect(args._value).to.be.equal(transferAmount); + expect(args._value).to.be.bignumber.equal(transferAmount); done(); }); await zeroEx.token.transferAsync(tokenAddress, coinbase, addressWithoutFunds, transferAmount); @@ -289,7 +289,7 @@ describe('TokenWrapper', () => { const args = event.args as ApprovalContractEventArgs; expect(args._owner).to.be.equal(coinbase); expect(args._spender).to.be.equal(addressWithoutFunds); - expect(args._value).to.be.equal(allowanceAmount); + expect(args._value).to.be.bignumber.equal(allowanceAmount); done(); }); await zeroEx.token.setAllowanceAsync(tokenAddress, coinbase, addressWithoutFunds, allowanceAmount); -- cgit v1.2.3