diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-09-26 17:55:15 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-09-26 17:57:32 +0800 |
commit | ee0adc8a7ed95db925cee4db7a16040883bec02b (patch) | |
tree | c17365deb7aab2b70d4ac39ce28028fbd77f6783 | |
parent | e347297aaaf314bc02c3e37d485e817bf5cf52a8 (diff) | |
download | dexon-0x-contracts-ee0adc8a7ed95db925cee4db7a16040883bec02b.tar.gz dexon-0x-contracts-ee0adc8a7ed95db925cee4db7a16040883bec02b.tar.zst dexon-0x-contracts-ee0adc8a7ed95db925cee4db7a16040883bec02b.zip |
Add a test for getZRXTokenAddressAsync
-rw-r--r-- | test/exchange_wrapper_test.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/exchange_wrapper_test.ts b/test/exchange_wrapper_test.ts index f72e7f64f..9c0617671 100644 --- a/test/exchange_wrapper_test.ts +++ b/test/exchange_wrapper_test.ts @@ -591,4 +591,11 @@ describe('ExchangeWrapper', () => { expect(orderHash).to.equal(orderHashFromContract); }); }); + describe('#getZRXTokenAddressAsync', () => { + it('gets the same token as is in token registry', async () => { + const zrxAddress = await zeroEx.exchange.getZRXTokenAddressAsync(); + const zrxToken = tokenUtils.getProtocolTokenOrThrow(); + expect(zrxAddress).to.equal(zrxToken.address); + }); + }); }); |