diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-11 19:14:46 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-11 19:14:46 +0800 |
commit | 6b152edb985d836c91c6d816c03cc15e77be2c6e (patch) | |
tree | c45781294002a7b01eb78d1a3b25dba64a8c68de /test/assert_test.ts | |
parent | fad23af55e997eea764f1d4e8e698c0ace3c351b (diff) | |
download | dexon-sol-tools-6b152edb985d836c91c6d816c03cc15e77be2c6e.tar dexon-sol-tools-6b152edb985d836c91c6d816c03cc15e77be2c6e.tar.gz dexon-sol-tools-6b152edb985d836c91c6d816c03cc15e77be2c6e.tar.bz2 dexon-sol-tools-6b152edb985d836c91c6d816c03cc15e77be2c6e.tar.lz dexon-sol-tools-6b152edb985d836c91c6d816c03cc15e77be2c6e.tar.xz dexon-sol-tools-6b152edb985d836c91c6d816c03cc15e77be2c6e.tar.zst dexon-sol-tools-6b152edb985d836c91c6d816c03cc15e77be2c6e.zip |
Fix last tests
Diffstat (limited to 'test/assert_test.ts')
-rw-r--r-- | test/assert_test.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/assert_test.ts b/test/assert_test.ts index 6b623eaad..338027ad3 100644 --- a/test/assert_test.ts +++ b/test/assert_test.ts @@ -13,13 +13,13 @@ describe('Assertion library', () => { it('throws when address is invalid', async () => { const address = '0xdeadbeef'; const varName = 'address'; - return expect(assert.isSenderAddressAsync(varName, address, (zeroEx as any).web3Wrapper)) + return expect(assert.isSenderAddressAsync(varName, address, (zeroEx as any)._web3Wrapper)) .to.be.rejectedWith(`Expected ${varName} to be of type ETHAddressHex, encountered: ${address}`); }); it('throws when address is unavailable', async () => { const validUnrelatedAddress = '0x8b0292b11a196601eddce54b665cafeca0347d42'; const varName = 'address'; - return expect(assert.isSenderAddressAsync(varName, validUnrelatedAddress, (zeroEx as any).web3Wrapper)) + return expect(assert.isSenderAddressAsync(varName, validUnrelatedAddress, (zeroEx as any)._web3Wrapper)) .to.be.rejectedWith( `Specified ${varName} ${validUnrelatedAddress} isn't available through the supplied web3 instance`, ); @@ -27,7 +27,7 @@ describe('Assertion library', () => { it('doesn\'t throw if address is available', async () => { const availableAddress = (await zeroEx.getAvailableAddressesAsync())[0]; const varName = 'address'; - return expect(assert.isSenderAddressAsync(varName, availableAddress, (zeroEx as any).web3Wrapper)) + return expect(assert.isSenderAddressAsync(varName, availableAddress, (zeroEx as any)._web3Wrapper)) .to.become(undefined); }); }); |