aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/assert.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-06-07 19:20:02 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-06-07 19:26:13 +0800
commit2947f55acf932703a54d3177b0c4d9e115c861c2 (patch)
tree09cce4683bd2b56d968a48f771ae1038cb02e054 /src/utils/assert.ts
parentd55213e1aa1bf5d934afaef3f28d4b5c7a5cc7f9 (diff)
downloaddexon-sol-tools-2947f55acf932703a54d3177b0c4d9e115c861c2.tar
dexon-sol-tools-2947f55acf932703a54d3177b0c4d9e115c861c2.tar.gz
dexon-sol-tools-2947f55acf932703a54d3177b0c4d9e115c861c2.tar.bz2
dexon-sol-tools-2947f55acf932703a54d3177b0c4d9e115c861c2.tar.lz
dexon-sol-tools-2947f55acf932703a54d3177b0c4d9e115c861c2.tar.xz
dexon-sol-tools-2947f55acf932703a54d3177b0c4d9e115c861c2.tar.zst
dexon-sol-tools-2947f55acf932703a54d3177b0c4d9e115c861c2.zip
Add tests for batchCancelAsync
Diffstat (limited to 'src/utils/assert.ts')
-rw-r--r--src/utils/assert.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/assert.ts b/src/utils/assert.ts
index 3842185bb..61b7527e6 100644
--- a/src/utils/assert.ts
+++ b/src/utils/assert.ts
@@ -45,8 +45,8 @@ export const assert = {
isSameLength(variableName1: string, value1: any[], variableName2: string, value2: any[]) {
const length1 = value1.length;
const length2 = value2.length;
- this.assert(length1 === length2, `${variableName1} and ${variableName2} length mismatch.
- ${length1} != ${length2}`);
+ this.assert(length1 === length2, `${variableName1} and ${variableName2} length mismatch. \
+${length1} != ${length2}`);
},
isNumber(variableName: string, value: number): void {
this.assert(_.isFinite(value), this.typeAssertionMessage(variableName, 'number', value));