From c32561d841d2dabefefecb1508f1691ff7e90abd Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Thu, 23 Jan 2020 16:29:52 +0530 Subject: [PATCH] optional final callback in runTestFiles --- remix-tests/src/runTestFiles.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/remix-tests/src/runTestFiles.ts b/remix-tests/src/runTestFiles.ts index 0d5fa3df4..307300c9c 100644 --- a/remix-tests/src/runTestFiles.ts +++ b/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) }