aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-06-03 01:38:28 +0800
committerFabio Berger <me@fabioberger.com>2017-06-03 01:38:28 +0800
commitd4320fec724c5bf34e7dcd006cba8ffe7a3c76d1 (patch)
tree4835a4f01d3b1348c845385524fd0f5f0de90aa2 /test
parentc83587a16d016d1efafaf31abb9b39eb54128568 (diff)
downloaddexon-sol-tools-d4320fec724c5bf34e7dcd006cba8ffe7a3c76d1.tar
dexon-sol-tools-d4320fec724c5bf34e7dcd006cba8ffe7a3c76d1.tar.gz
dexon-sol-tools-d4320fec724c5bf34e7dcd006cba8ffe7a3c76d1.tar.bz2
dexon-sol-tools-d4320fec724c5bf34e7dcd006cba8ffe7a3c76d1.tar.lz
dexon-sol-tools-d4320fec724c5bf34e7dcd006cba8ffe7a3c76d1.tar.xz
dexon-sol-tools-d4320fec724c5bf34e7dcd006cba8ffe7a3c76d1.tar.zst
dexon-sol-tools-d4320fec724c5bf34e7dcd006cba8ffe7a3c76d1.zip
Add includeStack config to chai setup so that we get stackTraces
Diffstat (limited to 'test')
-rw-r--r--test/0x.js_test.ts1
-rw-r--r--test/exchange_wrapper_test.ts1
-rw-r--r--test/token_registry_wrapper_test.ts1
-rw-r--r--test/token_wrapper_test.ts1
4 files changed, 4 insertions, 0 deletions
diff --git a/test/0x.js_test.ts b/test/0x.js_test.ts
index efc703ea1..9196d3df3 100644
--- a/test/0x.js_test.ts
+++ b/test/0x.js_test.ts
@@ -10,6 +10,7 @@ import {constants} from './utils/constants';
import {web3Factory} from './utils/web3_factory';
import {Order} from '../src/types';
+chai.config.includeStack = true;
chai.use(ChaiBigNumber());
chai.use(dirtyChai);
const expect = chai.expect;
diff --git a/test/exchange_wrapper_test.ts b/test/exchange_wrapper_test.ts
index 6327ef004..607cdf052 100644
--- a/test/exchange_wrapper_test.ts
+++ b/test/exchange_wrapper_test.ts
@@ -13,6 +13,7 @@ import {ExchangeContractErrs, SignedOrder, Token} from '../src/types';
import {FillScenarios} from './utils/fill_scenarios';
import {TokenUtils} from './utils/token_utils';
+chai.config.includeStack = true;
chai.use(dirtyChai);
chai.use(ChaiBigNumber());
const expect = chai.expect;
diff --git a/test/token_registry_wrapper_test.ts b/test/token_registry_wrapper_test.ts
index c91555d8b..195b2f205 100644
--- a/test/token_registry_wrapper_test.ts
+++ b/test/token_registry_wrapper_test.ts
@@ -10,6 +10,7 @@ import {Token} from '../src/types';
import {SchemaValidator} from '../src/utils/schema_validator';
import {tokenSchema} from '../src/schemas/token_schema';
+chai.config.includeStack = true;
const expect = chai.expect;
chai.use(chaiAsPromised);
const blockchainLifecycle = new BlockchainLifecycle();
diff --git a/test/token_wrapper_test.ts b/test/token_wrapper_test.ts
index 4af07a8b2..cfd87da84 100644
--- a/test/token_wrapper_test.ts
+++ b/test/token_wrapper_test.ts
@@ -8,6 +8,7 @@ import {ZeroEx} from '../src/0x.js';
import {ZeroExError, Token} from '../src/types';
import {BlockchainLifecycle} from './utils/blockchain_lifecycle';
+chai.config.includeStack = true;
const expect = chai.expect;
const blockchainLifecycle = new BlockchainLifecycle();