Fix tests

This commit is contained in:
Leonid Logvinov
2017-11-12 18:52:22 -05:00
parent 84c965d459
commit d52825a5b1

View File

@@ -96,7 +96,7 @@ describe('OrderStateWatcher', () => {
it('should fail when trying to subscribe twice', async () => {
await zeroEx.orderStateWatcher.subscribe(_.noop);
return expect(zeroEx.orderStateWatcher.subscribe(_.noop))
.to.be.rejectedWith(ZeroExError.SubscriptionAlreadyPresent);
.to.be.eventually.rejectedWith(ZeroExError.SubscriptionAlreadyPresent);
});
});
describe('tests with cleanup', async () => {