Skip to content
This repository has been archived by the owner on Mar 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #1407 from ethereum/fix/#969
Browse files Browse the repository at this point in the history
optional final callback in runTestFiles
  • Loading branch information
yann300 authored Jan 23, 2020
2 parents 30d61a1 + c32561d commit a20459c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions remix-tests/src/runTestFiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -152,6 +153,5 @@ export function runTestFiles(filepath: string, isDirectory: boolean, web3: Web3,
next()
})
}
], () => {
})
], finalCallback)
}

0 comments on commit a20459c

Please sign in to comment.