diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-07-05 01:31:07 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-07-05 01:31:07 +0800 |
commit | c5dca95f893cbc66d7e6d2de234f1411f28e1d19 (patch) | |
tree | 181fc3400ac0e4256a18a42dea0300042943ab7b /test/token_wrapper_test.ts | |
parent | b1c7291d3cfffb11a13c50a518f2b895bcdc9fc5 (diff) | |
download | dexon-sol-tools-c5dca95f893cbc66d7e6d2de234f1411f28e1d19.tar dexon-sol-tools-c5dca95f893cbc66d7e6d2de234f1411f28e1d19.tar.gz dexon-sol-tools-c5dca95f893cbc66d7e6d2de234f1411f28e1d19.tar.bz2 dexon-sol-tools-c5dca95f893cbc66d7e6d2de234f1411f28e1d19.tar.lz dexon-sol-tools-c5dca95f893cbc66d7e6d2de234f1411f28e1d19.tar.xz dexon-sol-tools-c5dca95f893cbc66d7e6d2de234f1411f28e1d19.tar.zst dexon-sol-tools-c5dca95f893cbc66d7e6d2de234f1411f28e1d19.zip |
Use .bignumber for BigNumber comparation
Diffstat (limited to 'test/token_wrapper_test.ts')
-rw-r--r-- | test/token_wrapper_test.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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); |