aboutsummaryrefslogtreecommitdiffstats
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:37:06 +0800
commitf9ef6491e60c61ba4859c3411e971bcc21d77e4e (patch)
treebaee5b1e119b18539398f34ab2a0595ba4c04a3e
parent706bfafe74f289feb98021c1303ca27c342c2f14 (diff)
downloaddexon-sol-tools-f9ef6491e60c61ba4859c3411e971bcc21d77e4e.tar
dexon-sol-tools-f9ef6491e60c61ba4859c3411e971bcc21d77e4e.tar.gz
dexon-sol-tools-f9ef6491e60c61ba4859c3411e971bcc21d77e4e.tar.bz2
dexon-sol-tools-f9ef6491e60c61ba4859c3411e971bcc21d77e4e.tar.lz
dexon-sol-tools-f9ef6491e60c61ba4859c3411e971bcc21d77e4e.tar.xz
dexon-sol-tools-f9ef6491e60c61ba4859c3411e971bcc21d77e4e.tar.zst
dexon-sol-tools-f9ef6491e60c61ba4859c3411e971bcc21d77e4e.zip
Fix Tslint error caused by "PromiseLike" value
-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 1edd44aff..2c7a60c4e 100644
--- a/packages/contracts/test/exchange/core.ts
+++ b/packages/contracts/test/exchange/core.ts
@@ -538,6 +538,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,
);
@@ -556,6 +559,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,
);