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

optional final callback in runTestFiles
pull/7/head
yann300 5 years ago committed by GitHub
commit a20459c922
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      remix-tests/src/runTestFiles.ts

@ -13,10 +13,11 @@ import { deployAll } from './deployer'
* @param filepath Path of file
* @param isDirectory True, if path is a directory
* @param web3 Web3
* @param finalCallback optional callback to run finally
* @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 || {}
const sourceASTs: any = {}
const { Signale } = require('signale')
@ -152,6 +153,5 @@ export function runTestFiles(filepath: string, isDirectory: boolean, web3: Web3,
next()
})
}
], () => {
})
], finalCallback)
}

Loading…
Cancel
Save