aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-06-06 20:29:07 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-06-06 20:29:07 +0800
commitef57dd22e29057e5bd84b9a0ad36a123126695df (patch)
tree842046644e21ec46c7e12315c8b3dc9f94e75c40 /test
parent8103a6cedda2646405c8cfd644c609cf3e4a84cb (diff)
downloaddexon-sol-tools-ef57dd22e29057e5bd84b9a0ad36a123126695df.tar
dexon-sol-tools-ef57dd22e29057e5bd84b9a0ad36a123126695df.tar.gz
dexon-sol-tools-ef57dd22e29057e5bd84b9a0ad36a123126695df.tar.bz2
dexon-sol-tools-ef57dd22e29057e5bd84b9a0ad36a123126695df.tar.lz
dexon-sol-tools-ef57dd22e29057e5bd84b9a0ad36a123126695df.tar.xz
dexon-sol-tools-ef57dd22e29057e5bd84b9a0ad36a123126695df.tar.zst
dexon-sol-tools-ef57dd22e29057e5bd84b9a0ad36a123126695df.zip
Rename isSenderAddressHexAsync to isSenderAddressAsync
Diffstat (limited to 'test')
-rw-r--r--test/assert_test.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/assert_test.ts b/test/assert_test.ts
index ff15d6cf6..560ef06d4 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 = 'address';
- return expect(assert.isSenderAddressHexAsync(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.isSenderAddressHexAsync(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`);
});
it('doesn\'t throw if address is available', async () => {
const availableAddress = (await zeroEx.getAvailableAddressesAsync())[0];
const varName = 'address';
- return expect(assert.isSenderAddressHexAsync(varName, availableAddress, (zeroEx as any).web3Wrapper))
+ return expect(assert.isSenderAddressAsync(varName, availableAddress, (zeroEx as any).web3Wrapper))
.to.become(undefined);
});
});