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

optional final callback in runTestFiles #1407

Merged
merged 1 commit into from
Jan 23, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
}