aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-11-13 08:24:58 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-11-13 09:06:14 +0800
commitd73fb5a23c0e23eaec90aee0b563c06fa8f380d6 (patch)
tree922507a435c7cc5556032a4b126636e91f9a768e
parent610298a25d5a5d1bb7a6baa407f169a44e7695bf (diff)
downloaddexon-sol-tools-d73fb5a23c0e23eaec90aee0b563c06fa8f380d6.tar
dexon-sol-tools-d73fb5a23c0e23eaec90aee0b563c06fa8f380d6.tar.gz
dexon-sol-tools-d73fb5a23c0e23eaec90aee0b563c06fa8f380d6.tar.bz2
dexon-sol-tools-d73fb5a23c0e23eaec90aee0b563c06fa8f380d6.tar.lz
dexon-sol-tools-d73fb5a23c0e23eaec90aee0b563c06fa8f380d6.tar.xz
dexon-sol-tools-d73fb5a23c0e23eaec90aee0b563c06fa8f380d6.tar.zst
dexon-sol-tools-d73fb5a23c0e23eaec90aee0b563c06fa8f380d6.zip
Fix tests
-rw-r--r--test/order_state_watcher_test.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/order_state_watcher_test.ts b/test/order_state_watcher_test.ts
index df007588e..aa387f495 100644
--- a/test/order_state_watcher_test.ts
+++ b/test/order_state_watcher_test.ts
@@ -94,9 +94,9 @@ describe('OrderStateWatcher', () => {
zeroEx.orderStateWatcher.unsubscribe();
});
it('should fail when trying to subscribe twice', async () => {
- await zeroEx.orderStateWatcher.subscribe(_.noop);
- return expect(zeroEx.orderStateWatcher.subscribe(_.noop))
- .to.be.eventually.rejectedWith(ZeroExError.SubscriptionAlreadyPresent);
+ zeroEx.orderStateWatcher.subscribe(_.noop);
+ expect(() => zeroEx.orderStateWatcher.subscribe(_.noop))
+ .to.throw();
});
});
describe('tests with cleanup', async () => {
@@ -119,7 +119,7 @@ describe('OrderStateWatcher', () => {
expect(invalidOrderState.error).to.be.equal(ExchangeContractErrs.InsufficientMakerAllowance);
done();
});
- await zeroEx.orderStateWatcher.subscribe(callback);
+ zeroEx.orderStateWatcher.subscribe(callback);
await zeroEx.token.setProxyAllowanceAsync(makerToken.address, maker, new BigNumber(0));
})().catch(done);
});