aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-05-23 08:36:41 +0800
committerFabio Berger <me@fabioberger.com>2018-05-23 08:36:41 +0800
commit61e487224fab2995b18b1534bfa83362b38b5725 (patch)
treec93261297493ee2c1dbc595f777c126fbb9079d0 /packages
parent4d364ea26128f179fea0679294f43a7882db4e53 (diff)
downloaddexon-sol-tools-61e487224fab2995b18b1534bfa83362b38b5725.tar
dexon-sol-tools-61e487224fab2995b18b1534bfa83362b38b5725.tar.gz
dexon-sol-tools-61e487224fab2995b18b1534bfa83362b38b5725.tar.bz2
dexon-sol-tools-61e487224fab2995b18b1534bfa83362b38b5725.tar.lz
dexon-sol-tools-61e487224fab2995b18b1534bfa83362b38b5725.tar.xz
dexon-sol-tools-61e487224fab2995b18b1534bfa83362b38b5725.tar.zst
dexon-sol-tools-61e487224fab2995b18b1534bfa83362b38b5725.zip
Fix Tslint error caused by "PromiseLike" value
Diffstat (limited to 'packages')
-rw-r--r--packages/contracts/test/exchange/core.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/contracts/test/exchange/core.ts b/packages/contracts/test/exchange/core.ts
index 78b36dfc3..f1d9a4156 100644
--- a/packages/contracts/test/exchange/core.ts
+++ b/packages/contracts/test/exchange/core.ts
@@ -533,6 +533,9 @@ describe('Exchange core', () => {
}),
constants.AWAIT_TRANSACTION_MINED_MS,
);
+ // HACK: `rejectWith` returns a "promise-like" type, but not an actual "Promise", so TSLint
+ // complains, even though we do need to `await` it. So we disable the TSLint error below.
+ // tslint:disable-next-line:await-promise
await expect(exchangeWrapper.fillOrderAsync(signedOrder, takerAddress)).to.be.rejectedWith(
constants.REVERT,
);
@@ -551,6 +554,9 @@ describe('Exchange core', () => {
}),
constants.AWAIT_TRANSACTION_MINED_MS,
);
+ // HACK: `rejectWith` returns a "promise-like" type, but not an actual "Promise", so TSLint
+ // complains, even though we do need to `await` it. So we disable the TSLint error below.
+ // tslint:disable-next-line:await-promise
await expect(exchangeWrapper.fillOrderAsync(signedOrder, takerAddress)).to.be.rejectedWith(
constants.REVERT,
);