Commit 80587dd6 authored by aniket-engg's avatar aniket-engg Committed by Aniket

return web3 for failed tests

parent 8fcd7bda
......@@ -322,7 +322,8 @@ export function runTest (testName: string, testObject: any, contractDetails: Com
assertMethod,
returned: testEvent[3],
expected: testEvent[4],
location
location,
web3
}
if (hhLogs) resp.hhLogs = hhLogs
testCallback(undefined, resp)
......@@ -373,7 +374,8 @@ export function runTest (testName: string, testObject: any, contractDetails: Com
filename: testObject.filename,
time: time,
errMsg: err.message,
context: testName
context: testName,
web3
}
testCallback(undefined, resp)
failureNum += 1
......
......@@ -37,6 +37,7 @@ export interface TestResultInterface {
expected?: string | number
location?: string
hhLogs?: []
web3?: any
}
export interface TestCbInterface {
(error: Error | null | undefined, result: TestResultInterface) : void;
......
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