aboutsummaryrefslogtreecommitdiffstats
path: root/contracts/test-utils/src/chai_setup.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-12-04 20:53:15 +0800
committerGitHub <noreply@github.com>2018-12-04 20:53:15 +0800
commit79f5e36edbd8a4483aac46032092dece95bb0b4c (patch)
treeb9c86a0badb2f1e82efa6354eede587368449a87 /contracts/test-utils/src/chai_setup.ts
parenta1e985a1cac46ecbc54c7ef5b846fb5faf2bede2 (diff)
parenta87276341356e31e0712f42ada00ed5d55707a6b (diff)
downloaddexon-sol-tools-79f5e36edbd8a4483aac46032092dece95bb0b4c.tar
dexon-sol-tools-79f5e36edbd8a4483aac46032092dece95bb0b4c.tar.gz
dexon-sol-tools-79f5e36edbd8a4483aac46032092dece95bb0b4c.tar.bz2
dexon-sol-tools-79f5e36edbd8a4483aac46032092dece95bb0b4c.tar.lz
dexon-sol-tools-79f5e36edbd8a4483aac46032092dece95bb0b4c.tar.xz
dexon-sol-tools-79f5e36edbd8a4483aac46032092dece95bb0b4c.tar.zst
dexon-sol-tools-79f5e36edbd8a4483aac46032092dece95bb0b4c.zip
Merge pull request #1311 from 0xProject/feature/contracts-monorepo-2
Contracts monorepo II
Diffstat (limited to 'contracts/test-utils/src/chai_setup.ts')
-rw-r--r--contracts/test-utils/src/chai_setup.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/contracts/test-utils/src/chai_setup.ts b/contracts/test-utils/src/chai_setup.ts
new file mode 100644
index 000000000..1a8733093
--- /dev/null
+++ b/contracts/test-utils/src/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(): void {
+ chai.config.includeStack = true;
+ chai.use(ChaiBigNumber());
+ chai.use(dirtyChai);
+ chai.use(chaiAsPromised);
+ },
+};