aboutsummaryrefslogtreecommitdiffstats
path: root/test/utils/chai_setup.ts
diff options
context:
space:
mode:
authorLeonid <logvinov.leon@gmail.com>2017-06-06 20:05:01 +0800
committerGitHub <noreply@github.com>2017-06-06 20:05:01 +0800
commit2eb99f46f53984c1a54315f87059ef18b9d06349 (patch)
tree15258b1412d7658e1844f54954c84d2fc2c6865a /test/utils/chai_setup.ts
parent0b700deb01ea044d53ae80ee483aa75262dcff07 (diff)
parentfee0e5bfc7338f368f83f1e22a19d56943bd421b (diff)
downloaddexon-sol-tools-2eb99f46f53984c1a54315f87059ef18b9d06349.tar
dexon-sol-tools-2eb99f46f53984c1a54315f87059ef18b9d06349.tar.gz
dexon-sol-tools-2eb99f46f53984c1a54315f87059ef18b9d06349.tar.bz2
dexon-sol-tools-2eb99f46f53984c1a54315f87059ef18b9d06349.tar.lz
dexon-sol-tools-2eb99f46f53984c1a54315f87059ef18b9d06349.tar.xz
dexon-sol-tools-2eb99f46f53984c1a54315f87059ef18b9d06349.tar.zst
dexon-sol-tools-2eb99f46f53984c1a54315f87059ef18b9d06349.zip
Merge pull request #35 from 0xProject/chai-setup
Add chai_setup
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..c18988106
--- /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);
+ },
+};