aboutsummaryrefslogtreecommitdiffstats
path: root/test/utils/chai_setup.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-06-06 17:28:11 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-06-06 17:28:11 +0800
commitaeec2a96b09b90ed98e0d21ee9467bda38f3b72c (patch)
tree789f10f4df8d53bdf0d0019af52afb45039fcd06 /test/utils/chai_setup.ts
parent4dc9a14aaf1c01ba28326af575d1eaf6ac1d4606 (diff)
downloaddexon-sol-tools-aeec2a96b09b90ed98e0d21ee9467bda38f3b72c.tar
dexon-sol-tools-aeec2a96b09b90ed98e0d21ee9467bda38f3b72c.tar.gz
dexon-sol-tools-aeec2a96b09b90ed98e0d21ee9467bda38f3b72c.tar.bz2
dexon-sol-tools-aeec2a96b09b90ed98e0d21ee9467bda38f3b72c.tar.lz
dexon-sol-tools-aeec2a96b09b90ed98e0d21ee9467bda38f3b72c.tar.xz
dexon-sol-tools-aeec2a96b09b90ed98e0d21ee9467bda38f3b72c.tar.zst
dexon-sol-tools-aeec2a96b09b90ed98e0d21ee9467bda38f3b72c.zip
Address feedback
Diffstat (limited to 'test/utils/chai_setup.ts')
-rw-r--r--test/utils/chai_setup.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/utils/chai_setup.ts b/test/utils/chai_setup.ts
new file mode 100644
index 000000000..1b9783724
--- /dev/null
+++ b/test/utils/chai_setup.ts
@@ -0,0 +1,13 @@
+import * as chai from 'chai';
+import * as dirtyChai from 'dirty-chai';
+import ChaiBigNumber = require('chai-bignumber');
+import chaiAsPromised = require('chai-as-promised');
+
+export const chaiSetup = {
+ configure: () => {
+ chai.config.includeStack = true;
+ chai.use(ChaiBigNumber());
+ chai.use(dirtyChai);
+ chai.use(chaiAsPromised);
+ },
+};