diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-06 18:37:52 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-06 18:37:52 +0800 |
commit | ed3d1a8142e6f65480f95df7c3991ae00c757e38 (patch) | |
tree | 394da30c632c575f105a1c9650660552ade83ff0 /test | |
parent | c9fe2b16b9efcef123e8402d38f84a966f49f4f7 (diff) | |
download | dexon-0x-contracts-ed3d1a8142e6f65480f95df7c3991ae00c757e38.tar dexon-0x-contracts-ed3d1a8142e6f65480f95df7c3991ae00c757e38.tar.gz dexon-0x-contracts-ed3d1a8142e6f65480f95df7c3991ae00c757e38.tar.bz2 dexon-0x-contracts-ed3d1a8142e6f65480f95df7c3991ae00c757e38.tar.lz dexon-0x-contracts-ed3d1a8142e6f65480f95df7c3991ae00c757e38.tar.xz dexon-0x-contracts-ed3d1a8142e6f65480f95df7c3991ae00c757e38.tar.zst dexon-0x-contracts-ed3d1a8142e6f65480f95df7c3991ae00c757e38.zip |
Rename assert.isSenderAccountHexAsync to assert.isSenderAddressHexAsync
Diffstat (limited to 'test')
-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 2100611e9..f72956eb3 100644 --- a/test/assert_test.ts +++ b/test/assert_test.ts @@ -13,20 +13,20 @@ describe('Assertion library', () => { it('throws when address is invalid', async () => { const address = '0xdeadbeef'; const varName = 'account'; - return expect(assert.isSenderAccountHexAsync(varName, address, (zeroEx as any).web3Wrapper)) + return expect(assert.isSenderAddressHexAsync(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 = 'account'; - return expect(assert.isSenderAccountHexAsync(varName, validUnrelatedAddress, (zeroEx as any).web3Wrapper)) + return expect(assert.isSenderAddressHexAsync(varName, validUnrelatedAddress, (zeroEx as any).web3Wrapper)) .to.be.rejectedWith(`Specified sender account ${validUnrelatedAddress} \ isn't available through the supplied web3 instance`); }); it('doesn\'t throw if account is available', async () => { const availableAccount = (await zeroEx.getAvailableAccountsAsync())[0]; const varName = 'account'; - return expect(assert.isSenderAccountHexAsync(varName, availableAccount, (zeroEx as any).web3Wrapper)) + return expect(assert.isSenderAddressHexAsync(varName, availableAccount, (zeroEx as any).web3Wrapper)) .to.become(undefined); }); }); |