diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-07 19:33:04 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-07 19:33:04 +0800 |
commit | 426f43391e0b762f03eb2aaf11e0a8d6c6aab301 (patch) | |
tree | a129c55c222209abc560c03cc131b58b809026c4 /test | |
parent | d5767428e598e9355786dd30c3ebb17a89b088ba (diff) | |
download | dexon-sol-tools-426f43391e0b762f03eb2aaf11e0a8d6c6aab301.tar dexon-sol-tools-426f43391e0b762f03eb2aaf11e0a8d6c6aab301.tar.gz dexon-sol-tools-426f43391e0b762f03eb2aaf11e0a8d6c6aab301.tar.bz2 dexon-sol-tools-426f43391e0b762f03eb2aaf11e0a8d6c6aab301.tar.lz dexon-sol-tools-426f43391e0b762f03eb2aaf11e0a8d6c6aab301.tar.xz dexon-sol-tools-426f43391e0b762f03eb2aaf11e0a8d6c6aab301.tar.zst dexon-sol-tools-426f43391e0b762f03eb2aaf11e0a8d6c6aab301.zip |
Move initialization up
Diffstat (limited to 'test')
-rw-r--r-- | test/exchange_wrapper_test.ts | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/test/exchange_wrapper_test.ts b/test/exchange_wrapper_test.ts index 309791518..21d54e061 100644 --- a/test/exchange_wrapper_test.ts +++ b/test/exchange_wrapper_test.ts @@ -121,22 +121,22 @@ describe('ExchangeWrapper', () => { }); }); describe('fill order', () => { + let makerTokenAddress: string; + let takerTokenAddress: string; + let coinbase: string; + let makerAddress: string; + let takerAddress: string; + let feeRecipient: string; + const fillTakerAmount = new BigNumber(5); + const shouldCheckTransfer = false; + before(async () => { + [coinbase, makerAddress, takerAddress, feeRecipient] = userAddresses; + tokens = await zeroEx.tokenRegistry.getTokensAsync(); + const [makerToken, takerToken] = tokenUtils.getNonProtocolTokens(); + makerTokenAddress = makerToken.address; + takerTokenAddress = takerToken.address; + }); describe('#fillOrderAsync', () => { - let makerTokenAddress: string; - let takerTokenAddress: string; - let coinbase: string; - let makerAddress: string; - let takerAddress: string; - let feeRecipient: string; - const fillTakerAmount = new BigNumber(5); - const shouldCheckTransfer = false; - before(async () => { - [coinbase, makerAddress, takerAddress, feeRecipient] = userAddresses; - tokens = await zeroEx.tokenRegistry.getTokensAsync(); - const [makerToken, takerToken] = tokenUtils.getNonProtocolTokens(); - makerTokenAddress = makerToken.address; - takerTokenAddress = takerToken.address; - }); describe('failed fills', () => { it('should throw when the fill amount is zero', async () => { const fillableAmount = new BigNumber(5); |