aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js
diff options
context:
space:
mode:
authorJacob Evans <jacob@dekz.net>2017-11-16 04:52:23 +0800
committerJacob Evans <jacob@dekz.net>2017-11-16 04:52:23 +0800
commit54c891a447fb5b47355e8f44a5b29bcc20bae1a1 (patch)
tree4d199b72c2471867b40d7847729b0936044dcc84 /packages/0x.js
parenta2e1d28efc8dbb9dcc07fae39b2be25a9d1a22be (diff)
downloaddexon-sol-tools-54c891a447fb5b47355e8f44a5b29bcc20bae1a1.tar
dexon-sol-tools-54c891a447fb5b47355e8f44a5b29bcc20bae1a1.tar.gz
dexon-sol-tools-54c891a447fb5b47355e8f44a5b29bcc20bae1a1.tar.bz2
dexon-sol-tools-54c891a447fb5b47355e8f44a5b29bcc20bae1a1.tar.lz
dexon-sol-tools-54c891a447fb5b47355e8f44a5b29bcc20bae1a1.tar.xz
dexon-sol-tools-54c891a447fb5b47355e8f44a5b29bcc20bae1a1.tar.zst
dexon-sol-tools-54c891a447fb5b47355e8f44a5b29bcc20bae1a1.zip
Fix test
Diffstat (limited to 'packages/0x.js')
-rw-r--r--packages/0x.js/test/order_state_watcher_test.ts12
1 files changed, 5 insertions, 7 deletions
diff --git a/packages/0x.js/test/order_state_watcher_test.ts b/packages/0x.js/test/order_state_watcher_test.ts
index 3bf768769..ac77ce4d7 100644
--- a/packages/0x.js/test/order_state_watcher_test.ts
+++ b/packages/0x.js/test/order_state_watcher_test.ts
@@ -335,7 +335,7 @@ describe('OrderStateWatcher', () => {
const remainingFeeAmount = ZeroEx.toBaseUnitAmount(new BigNumber(3), 18);
const transferFeeAmount = makerFee.sub(remainingFeeAmount);
- const remainingTokenAmount = ZeroEx.toBaseUnitAmount(new BigNumber(3), 18);
+ const remainingTokenAmount = ZeroEx.toBaseUnitAmount(new BigNumber(1), 18);
const transferTokenAmount = makerFee.sub(remainingFeeAmount);
zeroEx.orderStateWatcher.addOrder(signedOrder);
@@ -343,15 +343,13 @@ describe('OrderStateWatcher', () => {
const validOrderState = orderState as OrderStateValid;
const orderRelevantState = validOrderState.orderRelevantState;
expect(orderRelevantState.remainingFillableMakerTokenAmount).to.be.bignumber.equal(
- remainingAmount);
- expect(orderRelevantState.remainingFillableTakerTokenAmount).to.be.bignumber.equal(
- remainingAmount);
+ remainingFeeAmount);
done();
});
zeroEx.orderStateWatcher.subscribe(callback);
- await zeroEx.token.setProxyAllowanceAsync(zrxTokenAddress, maker, remainingAmount);
- // await zeroEx.token.transferAsync(
- // zrxTokenAddress, maker, ZeroEx.NULL_ADDRESS, transferAmount);
+ await zeroEx.token.setProxyAllowanceAsync(zrxTokenAddress, maker, remainingFeeAmount);
+ await zeroEx.token.transferAsync(
+ makerToken.address, maker, ZeroEx.NULL_ADDRESS, transferTokenAmount);
})().catch(done);
});
});