diff options
author | Leonid <logvinov.leon@gmail.com> | 2017-09-07 00:32:02 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-07 00:32:02 +0800 |
commit | c56724981970f90dfe68212d0447e8c7c9866b07 (patch) | |
tree | 0d57265a1d2a405987a6764e0c3c858fc87f26c0 /test/0x.js_test.ts | |
parent | 912d15cb73de0d44394c9d2e11e8dfdb248ade9c (diff) | |
parent | d2dc4d18be93fd04f237bef7fe7e29e4a9447517 (diff) | |
download | dexon-sol-tools-c56724981970f90dfe68212d0447e8c7c9866b07.tar dexon-sol-tools-c56724981970f90dfe68212d0447e8c7c9866b07.tar.gz dexon-sol-tools-c56724981970f90dfe68212d0447e8c7c9866b07.tar.bz2 dexon-sol-tools-c56724981970f90dfe68212d0447e8c7c9866b07.tar.lz dexon-sol-tools-c56724981970f90dfe68212d0447e8c7c9866b07.tar.xz dexon-sol-tools-c56724981970f90dfe68212d0447e8c7c9866b07.tar.zst dexon-sol-tools-c56724981970f90dfe68212d0447e8c7c9866b07.zip |
Merge pull request #157 from 0xProject/feature/throw-for-exchange-errors
Feature/throw for exchange errors
Diffstat (limited to 'test/0x.js_test.ts')
-rw-r--r-- | test/0x.js_test.ts | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/test/0x.js_test.ts b/test/0x.js_test.ts index 5182275a8..5461a7d3f 100644 --- a/test/0x.js_test.ts +++ b/test/0x.js_test.ts @@ -226,11 +226,9 @@ describe('ZeroEx library', () => { const txReceiptWithDecodedLogs = await zeroEx.awaitTransactionMinedAsync(txHash); const log = txReceiptWithDecodedLogs.logs[0] as LogWithDecodedArgs; expect(log.event).to.be.equal('Approval'); - expect(log.args).to.be.deep.equal({ - _owner: coinbase, - _spender: proxyAddress, - _value: zeroEx.token.UNLIMITED_ALLOWANCE_IN_BASE_UNITS.toString(), - }); + expect(log.args._owner).to.be.equal(coinbase); + expect(log.args._spender).to.be.equal(proxyAddress); + expect(log.args._value).to.be.bignumber.equal(zeroEx.token.UNLIMITED_ALLOWANCE_IN_BASE_UNITS); }); }); }); |