diff options
author | F. Eugene Aumson <gene@aumson.org> | 2018-08-16 06:20:00 +0800 |
---|---|---|
committer | F. Eugene Aumson <gene@aumson.org> | 2018-08-16 06:51:25 +0800 |
commit | 976d159e5275fa1fc0236fdd65c3acf40864657b (patch) | |
tree | 6a0ca36fd01677c902744edf12a504111703ec5a /packages/sol-compiler/test/util | |
parent | 455c78dfb1ee5a104964b70d0132438b86f6c437 (diff) | |
download | dexon-sol-tools-976d159e5275fa1fc0236fdd65c3acf40864657b.tar dexon-sol-tools-976d159e5275fa1fc0236fdd65c3acf40864657b.tar.gz dexon-sol-tools-976d159e5275fa1fc0236fdd65c3acf40864657b.tar.bz2 dexon-sol-tools-976d159e5275fa1fc0236fdd65c3acf40864657b.tar.lz dexon-sol-tools-976d159e5275fa1fc0236fdd65c3acf40864657b.tar.xz dexon-sol-tools-976d159e5275fa1fc0236fdd65c3acf40864657b.tar.zst dexon-sol-tools-976d159e5275fa1fc0236fdd65c3acf40864657b.zip |
follow chai_setup pattern
Diffstat (limited to 'packages/sol-compiler/test/util')
-rw-r--r-- | packages/sol-compiler/test/util/chai_setup.ts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/packages/sol-compiler/test/util/chai_setup.ts b/packages/sol-compiler/test/util/chai_setup.ts new file mode 100644 index 000000000..1a8733093 --- /dev/null +++ b/packages/sol-compiler/test/util/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); + }, +}; |