@0x/contracts-test-utils: Fix blockchain environment not being created

with top-level `blockchainTests.resets()` directive.
This commit is contained in:
Lawrence Forman 2019-07-28 02:18:15 -04:00
parent d3870fed1c
commit 930b742663

View File

@ -79,8 +79,8 @@ function defineBlockchainSuite<T>(
callback: Mocha.BlockchainSuiteCallback,
describeCall: Mocha.ContextDefinitionCallback<T>,
): T {
const env = BlockchainTestsEnvironment.create();
return describeCall(description, function(this: Mocha.ISuiteCallbackContext): void {
const env = BlockchainTestsEnvironment.create();
before(
async (): Promise<void> => {
return env.blockchainLifecycle.startAsync();