diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-07-01 23:39:57 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-07-01 23:39:57 +0800 |
commit | c0d4b30828c3b525ad47f51444dee8f4e7177459 (patch) | |
tree | 936c7229fbfe7a9ba8b973c53e0e16fb27fba4ec /test/exchange_wrapper_test.ts | |
parent | 79b79a5795ebcc566b8303afe29fc4164ea9c144 (diff) | |
download | dexon-0x-contracts-c0d4b30828c3b525ad47f51444dee8f4e7177459.tar dexon-0x-contracts-c0d4b30828c3b525ad47f51444dee8f4e7177459.tar.gz dexon-0x-contracts-c0d4b30828c3b525ad47f51444dee8f4e7177459.tar.bz2 dexon-0x-contracts-c0d4b30828c3b525ad47f51444dee8f4e7177459.tar.lz dexon-0x-contracts-c0d4b30828c3b525ad47f51444dee8f4e7177459.tar.xz dexon-0x-contracts-c0d4b30828c3b525ad47f51444dee8f4e7177459.tar.zst dexon-0x-contracts-c0d4b30828c3b525ad47f51444dee8f4e7177459.zip |
Assert correct event names in subscribeAsync tests
Diffstat (limited to 'test/exchange_wrapper_test.ts')
-rw-r--r-- | test/exchange_wrapper_test.ts | 3 |
1 files changed, 3 insertions, 0 deletions
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(); }); |