diff options
author | Fabio Berger <me@fabioberger.com> | 2017-06-02 22:33:10 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-06-02 22:33:10 +0800 |
commit | 563d0ca4a2e278a472c3c40db2ce914df9d83a82 (patch) | |
tree | ec7ba9c2e31f6638a0142987bd6bc1d6b9baa6db /test/token_wrapper_test.ts | |
parent | 21292ad15ec9490acb8d3089286f3d81e83967b7 (diff) | |
download | dexon-sol-tools-563d0ca4a2e278a472c3c40db2ce914df9d83a82.tar dexon-sol-tools-563d0ca4a2e278a472c3c40db2ce914df9d83a82.tar.gz dexon-sol-tools-563d0ca4a2e278a472c3c40db2ce914df9d83a82.tar.bz2 dexon-sol-tools-563d0ca4a2e278a472c3c40db2ce914df9d83a82.tar.lz dexon-sol-tools-563d0ca4a2e278a472c3c40db2ce914df9d83a82.tar.xz dexon-sol-tools-563d0ca4a2e278a472c3c40db2ce914df9d83a82.tar.zst dexon-sol-tools-563d0ca4a2e278a472c3c40db2ce914df9d83a82.zip |
use BigNumber(0) instead of with a string zero
Diffstat (limited to 'test/token_wrapper_test.ts')
-rw-r--r-- | test/token_wrapper_test.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/token_wrapper_test.ts b/test/token_wrapper_test.ts index 3b9071bde..b020caa5b 100644 --- a/test/token_wrapper_test.ts +++ b/test/token_wrapper_test.ts @@ -146,7 +146,7 @@ describe('TokenWrapper', () => { const token = tokens[0]; const nonExistentOwner = '0x198C6Ad858F213Fb31b6FE809E25040E6B964593'; const balance = await zeroEx.token.getBalanceAsync(token.address, nonExistentOwner); - const expectedBalance = new BigNumber('0'); + const expectedBalance = new BigNumber(0); return expect(balance).to.be.bignumber.equal(expectedBalance); }); }); @@ -158,7 +158,7 @@ describe('TokenWrapper', () => { const allowanceBeforeSet = await zeroEx.token.getAllowanceAsync(token.address, ownerAddress, spenderAddress); - const expectedAllowanceBeforeAllowanceSet = new BigNumber('0'); + const expectedAllowanceBeforeAllowanceSet = new BigNumber(0); expect(allowanceBeforeSet).to.be.bignumber.equal(expectedAllowanceBeforeAllowanceSet); const amountInUnits = new BigNumber('50'); @@ -189,7 +189,7 @@ describe('TokenWrapper', () => { const ownerAddress = coinbase; const spenderAddress = addressWithoutFunds; const allowance = await zeroEx.token.getAllowanceAsync(token.address, ownerAddress, spenderAddress); - const expectedAllowance = new BigNumber('0'); + const expectedAllowance = new BigNumber(0); return expect(allowance).to.be.bignumber.equal(expectedAllowance); }); }); @@ -213,7 +213,7 @@ describe('TokenWrapper', () => { const ownerAddress = coinbase; const allowanceBeforeSet = await zeroEx.token.getProxyAllowanceAsync(token.address, ownerAddress); - const expectedAllowanceBeforeAllowanceSet = new BigNumber('0'); + const expectedAllowanceBeforeAllowanceSet = new BigNumber(0); expect(allowanceBeforeSet).to.be.bignumber.equal(expectedAllowanceBeforeAllowanceSet); const amountInUnits = new BigNumber('50'); |