aboutsummaryrefslogtreecommitdiffstats
path: root/test/token_wrapper_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'test/token_wrapper_test.ts')
-rw-r--r--test/token_wrapper_test.ts9
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);
+ });
+ });
});