aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-07-01 23:39:57 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-07-01 23:39:57 +0800
commitc0d4b30828c3b525ad47f51444dee8f4e7177459 (patch)
tree936c7229fbfe7a9ba8b973c53e0e16fb27fba4ec /test
parent79b79a5795ebcc566b8303afe29fc4164ea9c144 (diff)
downloaddexon-sol-tools-c0d4b30828c3b525ad47f51444dee8f4e7177459.tar.gz
dexon-sol-tools-c0d4b30828c3b525ad47f51444dee8f4e7177459.tar.zst
dexon-sol-tools-c0d4b30828c3b525ad47f51444dee8f4e7177459.zip
Assert correct event names in subscribeAsync tests
Diffstat (limited to 'test')
-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();
});