aboutsummaryrefslogtreecommitdiffstats
path: root/test/chai_setup.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-06-05 19:07:26 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-06-05 19:07:26 +0800
commit4dc9a14aaf1c01ba28326af575d1eaf6ac1d4606 (patch)
treee8f37097a87e1a63811575e954dead91abc62ea5 /test/chai_setup.ts
parenteb5c9ae70886cb1a14ae154f363f052a76b24479 (diff)
downloaddexon-sol-tools-4dc9a14aaf1c01ba28326af575d1eaf6ac1d4606.tar
dexon-sol-tools-4dc9a14aaf1c01ba28326af575d1eaf6ac1d4606.tar.gz
dexon-sol-tools-4dc9a14aaf1c01ba28326af575d1eaf6ac1d4606.tar.bz2
dexon-sol-tools-4dc9a14aaf1c01ba28326af575d1eaf6ac1d4606.tar.lz
dexon-sol-tools-4dc9a14aaf1c01ba28326af575d1eaf6ac1d4606.tar.xz
dexon-sol-tools-4dc9a14aaf1c01ba28326af575d1eaf6ac1d4606.tar.zst
dexon-sol-tools-4dc9a14aaf1c01ba28326af575d1eaf6ac1d4606.zip
Add chai_setup
Diffstat (limited to 'test/chai_setup.ts')
-rw-r--r--test/chai_setup.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/chai_setup.ts b/test/chai_setup.ts
new file mode 100644
index 000000000..df71c960f
--- /dev/null
+++ b/test/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 class ChaiSetup {
+ public static configure(): void {
+ chai.config.includeStack = true;
+ chai.use(ChaiBigNumber());
+ chai.use(dirtyChai);
+ chai.use(chaiAsPromised);
+ }
+}