diff options
author | Fabio Berger <me@fabioberger.com> | 2017-05-30 21:28:21 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-05-30 21:28:21 +0800 |
commit | 53e83a7d8168d1feace1959803d3ad5e21dff7b8 (patch) | |
tree | 72b78902ec653937c1ac81b49bf37f2d5c23ba06 | |
parent | b5e496ea0f04206b74b37d71d6ba3e6975206efc (diff) | |
download | dexon-sol-tools-53e83a7d8168d1feace1959803d3ad5e21dff7b8.tar dexon-sol-tools-53e83a7d8168d1feace1959803d3ad5e21dff7b8.tar.gz dexon-sol-tools-53e83a7d8168d1feace1959803d3ad5e21dff7b8.tar.bz2 dexon-sol-tools-53e83a7d8168d1feace1959803d3ad5e21dff7b8.tar.lz dexon-sol-tools-53e83a7d8168d1feace1959803d3ad5e21dff7b8.tar.xz dexon-sol-tools-53e83a7d8168d1feace1959803d3ad5e21dff7b8.tar.zst dexon-sol-tools-53e83a7d8168d1feace1959803d3ad5e21dff7b8.zip |
Add first test for getProxyAllowanceAsync
-rw-r--r-- | test/token_wrapper_test.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/token_wrapper_test.ts b/test/token_wrapper_test.ts index a15fab505..9ce078c15 100644 --- a/test/token_wrapper_test.ts +++ b/test/token_wrapper_test.ts @@ -52,4 +52,13 @@ describe('TokenWrapper', () => { expect(balance).to.be.bignumber.equal(expectedBalance); }); }); + describe('#getProxyAllowanceAsync', () => { + it('should return 0 if no allowance set yet', async () => { + const aToken = tokens[0]; + const aOwner = userAddresses[0]; + const allowance = await zeroEx.token.getProxyAllowanceAsync(aToken.address, aOwner); + const expectedAllowance = new BigNumber('0'); + expect(allowance).to.be.bignumber.equal(expectedAllowance); + }); + }); }); |