aboutsummaryrefslogtreecommitdiffstats
path: root/test/assert_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'test/assert_test.ts')
-rw-r--r--test/assert_test.ts14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/assert_test.ts b/test/assert_test.ts
index 147c9832f..ff15d6cf6 100644
--- a/test/assert_test.ts
+++ b/test/assert_test.ts
@@ -9,24 +9,24 @@ const expect = chai.expect;
describe('Assertion library', () => {
const web3 = web3Factory.create();
const zeroEx = new ZeroEx(web3);
- describe('#isSenderAccountHexAsync', () => {
+ describe('#isSenderAddressHexAsync', () => {
it('throws when address is invalid', async () => {
const address = '0xdeadbeef';
- const varName = 'account';
+ const varName = 'address';
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';
+ const varName = 'address';
return expect(assert.isSenderAddressHexAsync(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 account is available', async () => {
- const availableAccount = (await zeroEx.getAvailableAddressesAsync())[0];
- const varName = 'account';
- return expect(assert.isSenderAddressHexAsync(varName, availableAccount, (zeroEx as any).web3Wrapper))
+ 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))
.to.become(undefined);
});
});