@0x/contracts-test-utils
: Fix blockchain environment not being created
with top-level `blockchainTests.resets()` directive.
This commit is contained in:
parent
d3870fed1c
commit
930b742663
@ -79,8 +79,8 @@ function defineBlockchainSuite<T>(
|
|||||||
callback: Mocha.BlockchainSuiteCallback,
|
callback: Mocha.BlockchainSuiteCallback,
|
||||||
describeCall: Mocha.ContextDefinitionCallback<T>,
|
describeCall: Mocha.ContextDefinitionCallback<T>,
|
||||||
): T {
|
): T {
|
||||||
return describeCall(description, function(this: Mocha.ISuiteCallbackContext): void {
|
|
||||||
const env = BlockchainTestsEnvironment.create();
|
const env = BlockchainTestsEnvironment.create();
|
||||||
|
return describeCall(description, function(this: Mocha.ISuiteCallbackContext): void {
|
||||||
before(
|
before(
|
||||||
async (): Promise<void> => {
|
async (): Promise<void> => {
|
||||||
return env.blockchainLifecycle.startAsync();
|
return env.blockchainLifecycle.startAsync();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user