Unverified Commit a20459c9 authored by yann300's avatar yann300 Committed by GitHub

Merge pull request #1407 from ethereum/fix/#969

optional final callback in runTestFiles
parents 30d61a1a c32561d8
...@@ -13,10 +13,11 @@ import { deployAll } from './deployer' ...@@ -13,10 +13,11 @@ import { deployAll } from './deployer'
* @param filepath Path of file * @param filepath Path of file
* @param isDirectory True, if path is a directory * @param isDirectory True, if path is a directory
* @param web3 Web3 * @param web3 Web3
* @param finalCallback optional callback to run finally
* @param opts Options * @param opts Options
*/ */
export function runTestFiles(filepath: string, isDirectory: boolean, web3: Web3, opts?: Options) { export function runTestFiles(filepath: string, isDirectory: boolean, web3: Web3, finalCallback: any = () => {}, opts?: Options) {
opts = opts || {} opts = opts || {}
const sourceASTs: any = {} const sourceASTs: any = {}
const { Signale } = require('signale') const { Signale } = require('signale')
...@@ -152,6 +153,5 @@ export function runTestFiles(filepath: string, isDirectory: boolean, web3: Web3, ...@@ -152,6 +153,5 @@ export function runTestFiles(filepath: string, isDirectory: boolean, web3: Web3,
next() next()
}) })
} }
], () => { ], finalCallback)
})
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment