aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid <logvinov.leon@gmail.com>2017-07-03 23:18:47 +0800
committerGitHub <noreply@github.com>2017-07-03 23:18:47 +0800
commit8e6fbc214b5613482cfaab0527a91bd9579fa335 (patch)
treeec924d2741bfb949e566c16a33924d5bf8e6f32f
parent5cb1e5853ebfa8843028a52fda1c5a6ce9d84ad5 (diff)
parentc0d4b30828c3b525ad47f51444dee8f4e7177459 (diff)
downloaddexon-sol-tools-8e6fbc214b5613482cfaab0527a91bd9579fa335.tar
dexon-sol-tools-8e6fbc214b5613482cfaab0527a91bd9579fa335.tar.gz
dexon-sol-tools-8e6fbc214b5613482cfaab0527a91bd9579fa335.tar.bz2
dexon-sol-tools-8e6fbc214b5613482cfaab0527a91bd9579fa335.tar.lz
dexon-sol-tools-8e6fbc214b5613482cfaab0527a91bd9579fa335.tar.xz
dexon-sol-tools-8e6fbc214b5613482cfaab0527a91bd9579fa335.tar.zst
dexon-sol-tools-8e6fbc214b5613482cfaab0527a91bd9579fa335.zip
Merge pull request #86 from 0xProject/subscribe-async-event-names
Assert correct event names in subscribeAsync tests
-rw-r--r--test/exchange_wrapper_test.ts3
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();
});