Skip to content

Commit d3cd57d

Browse files
kobenguyentCopilot
andauthored
Update asyncWrapper.js
Co-authored-by: Copilot <[email protected]>
1 parent c6a7233 commit d3cd57d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/mocha/asyncWrapper.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,7 @@ module.exports.injected = function (fn, suite, hookName) {
128128
suiteTestFailedHookError(suite, err, hookName)
129129
// Emit event.test.after for each test in the suite
130130
suite.eachTest(test => {
131-
// Attach err and hookName to test for backward compatibility, if needed
132-
test.err = err;
131+
// Attach hookName to test for backward compatibility, if needed
133132
test.hookName = hookName;
134133
event.emit(event.test.after, test)
135134
})

0 commit comments

Comments
 (0)