From c0d4b30828c3b525ad47f51444dee8f4e7177459 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Sat, 1 Jul 2017 08:39:57 -0700 Subject: Assert correct event names in subscribeAsync tests --- test/exchange_wrapper_test.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test') diff --git a/test/exchange_wrapper_test.ts b/test/exchange_wrapper_test.ts index 211c2819c..f40fdb874 100644 --- a/test/exchange_wrapper_test.ts +++ b/test/exchange_wrapper_test.ts @@ -674,6 +674,7 @@ describe('ExchangeWrapper', () => { zeroExEvent.watch((err: Error, event: ContractEvent) => { expect(err).to.be.null(); expect(event).to.not.be.undefined(); + expect(event.event).to.be.equal('LogFill'); done(); }); const fillTakerAmountInBaseUnits = new BigNumber(1); @@ -693,6 +694,7 @@ describe('ExchangeWrapper', () => { zeroExEvent.watch((err: Error, event: ContractEvent) => { expect(err).to.be.null(); expect(event).to.not.be.undefined(); + expect(event.event).to.be.equal('LogCancel'); done(); }); const cancelTakerAmountInBaseUnits = new BigNumber(1); @@ -721,6 +723,7 @@ describe('ExchangeWrapper', () => { eventSubscriptionToStay.watch((err: Error, event: ContractEvent) => { expect(err).to.be.null(); expect(event).to.not.be.undefined(); + expect(event.event).to.be.equal('LogFill'); done(); }); -- cgit v1.2.3