diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-06 17:28:11 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-06 17:28:11 +0800 |
commit | aeec2a96b09b90ed98e0d21ee9467bda38f3b72c (patch) | |
tree | 789f10f4df8d53bdf0d0019af52afb45039fcd06 | |
parent | 4dc9a14aaf1c01ba28326af575d1eaf6ac1d4606 (diff) | |
download | dexon-0x-contracts-aeec2a96b09b90ed98e0d21ee9467bda38f3b72c.tar.gz dexon-0x-contracts-aeec2a96b09b90ed98e0d21ee9467bda38f3b72c.tar.zst dexon-0x-contracts-aeec2a96b09b90ed98e0d21ee9467bda38f3b72c.zip |
Address feedback
-rw-r--r-- | test/0x.js_test.ts | 4 | ||||
-rw-r--r-- | test/exchange_wrapper_test.ts | 4 | ||||
-rw-r--r-- | test/token_registry_wrapper_test.ts | 4 | ||||
-rw-r--r-- | test/token_wrapper_test.ts | 4 | ||||
-rw-r--r-- | test/utils/chai_setup.ts (renamed from test/chai_setup.ts) | 8 |
5 files changed, 12 insertions, 12 deletions
diff --git a/test/0x.js_test.ts b/test/0x.js_test.ts index d2a36e1c4..42dbeee9f 100644 --- a/test/0x.js_test.ts +++ b/test/0x.js_test.ts @@ -1,6 +1,6 @@ import * as _ from 'lodash'; import * as chai from 'chai'; -import {ChaiSetup} from './chai_setup'; +import {chaiSetup} from './utils/chai_setup'; import 'mocha'; import * as BigNumber from 'bignumber.js'; import * as Sinon from 'sinon'; @@ -9,7 +9,7 @@ import {constants} from './utils/constants'; import {web3Factory} from './utils/web3_factory'; import {Order} from '../src/types'; -ChaiSetup.configure(); +chaiSetup.configure(); const expect = chai.expect; describe('ZeroEx library', () => { diff --git a/test/exchange_wrapper_test.ts b/test/exchange_wrapper_test.ts index ac0a2199e..37f7b4941 100644 --- a/test/exchange_wrapper_test.ts +++ b/test/exchange_wrapper_test.ts @@ -2,7 +2,7 @@ import 'mocha'; import * as chai from 'chai'; import * as Web3 from 'web3'; import * as BigNumber from 'bignumber.js'; -import {ChaiSetup} from './chai_setup'; +import {chaiSetup} from './utils/chai_setup'; import ChaiBigNumber = require('chai-bignumber'); import promisify = require('es6-promisify'); import {web3Factory} from './utils/web3_factory'; @@ -20,7 +20,7 @@ import { import {FillScenarios} from './utils/fill_scenarios'; import {TokenUtils} from './utils/token_utils'; -ChaiSetup.configure(); +chaiSetup.configure(); const expect = chai.expect; const blockchainLifecycle = new BlockchainLifecycle(); diff --git a/test/token_registry_wrapper_test.ts b/test/token_registry_wrapper_test.ts index cf2fa267b..33c4a8054 100644 --- a/test/token_registry_wrapper_test.ts +++ b/test/token_registry_wrapper_test.ts @@ -1,14 +1,14 @@ import * as _ from 'lodash'; import 'mocha'; import * as chai from 'chai'; -import {ChaiSetup} from './chai_setup'; +import {chaiSetup} from './utils/chai_setup'; import {web3Factory} from './utils/web3_factory'; import {ZeroEx} from '../src/0x.js'; import {BlockchainLifecycle} from './utils/blockchain_lifecycle'; import {SchemaValidator} from '../src/utils/schema_validator'; import {tokenSchema} from '../src/schemas/token_schema'; -ChaiSetup.configure(); +chaiSetup.configure(); const expect = chai.expect; const blockchainLifecycle = new BlockchainLifecycle(); diff --git a/test/token_wrapper_test.ts b/test/token_wrapper_test.ts index f9f231828..c258f8317 100644 --- a/test/token_wrapper_test.ts +++ b/test/token_wrapper_test.ts @@ -1,6 +1,6 @@ import 'mocha'; import * as chai from 'chai'; -import {ChaiSetup} from './chai_setup'; +import {chaiSetup} from './utils/chai_setup'; import * as Web3 from 'web3'; import * as BigNumber from 'bignumber.js'; import promisify = require('es6-promisify'); @@ -9,7 +9,7 @@ import {ZeroEx} from '../src/0x.js'; import {ZeroExError, Token} from '../src/types'; import {BlockchainLifecycle} from './utils/blockchain_lifecycle'; -ChaiSetup.configure(); +chaiSetup.configure(); const expect = chai.expect; const blockchainLifecycle = new BlockchainLifecycle(); diff --git a/test/chai_setup.ts b/test/utils/chai_setup.ts index df71c960f..1b9783724 100644 --- a/test/chai_setup.ts +++ b/test/utils/chai_setup.ts @@ -3,11 +3,11 @@ import * as dirtyChai from 'dirty-chai'; import ChaiBigNumber = require('chai-bignumber'); import chaiAsPromised = require('chai-as-promised'); -export class ChaiSetup { - public static configure(): void { +export const chaiSetup = { + configure: () => { chai.config.includeStack = true; chai.use(ChaiBigNumber()); chai.use(dirtyChai); chai.use(chaiAsPromised); - } -} + }, +}; |