aboutsummaryrefslogtreecommitdiffstats
path: root/packages/order-utils/test/utils/chai_setup.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-05-03 00:42:59 +0800
committerGitHub <noreply@github.com>2018-05-03 00:42:59 +0800
commita054b485d01d5003d47e7959a4fe1e1c0a6dc6a0 (patch)
tree7f7e45f54cdd8fc2830621cbb4f89093bef8cbf4 /packages/order-utils/test/utils/chai_setup.ts
parentf08738e13379ea86a33ad9be9f7579e637e69acb (diff)
parent3585326d7eb82ae730752d1956876b22f7638fa6 (diff)
downloaddexon-0x-contracts-a054b485d01d5003d47e7959a4fe1e1c0a6dc6a0.tar.gz
dexon-0x-contracts-a054b485d01d5003d47e7959a4fe1e1c0a6dc6a0.tar.zst
dexon-0x-contracts-a054b485d01d5003d47e7959a4fe1e1c0a6dc6a0.zip
Merge pull request #559 from 0xProject/feature/order-utils
Move order utils to @0xproject/order-utils
Diffstat (limited to 'packages/order-utils/test/utils/chai_setup.ts')
-rw-r--r--packages/order-utils/test/utils/chai_setup.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/packages/order-utils/test/utils/chai_setup.ts b/packages/order-utils/test/utils/chai_setup.ts
new file mode 100644
index 000000000..078edd309
--- /dev/null
+++ b/packages/order-utils/test/utils/chai_setup.ts
@@ -0,0 +1,13 @@
+import * as chai from 'chai';
+import chaiAsPromised = require('chai-as-promised');
+import ChaiBigNumber = require('chai-bignumber');
+import * as dirtyChai from 'dirty-chai';
+
+export const chaiSetup = {
+ configure() {
+ chai.config.includeStack = true;
+ chai.use(ChaiBigNumber());
+ chai.use(dirtyChai);
+ chai.use(chaiAsPromised);
+ },
+};