You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Mocha catches unhandled rejection from the user code and re-emits them to the process (see https://github.com/mochajs/mocha/blob/master/lib/runner.js#L198)
15
+
// Mocha catches unhandled rejection from the user code and re-emits them to the process
16
16
process.on('unhandledRejection',reason=>{
17
17
// Re-throw them so that the validation command fails in these cases (for example, if there is a syntax error when parsing JSON declaration files)
Copy file name to clipboardExpand all lines: bin/ota-validate.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ export async function runMochaTests(mocha, testPath) {
35
35
}
36
36
}
37
37
38
-
process.on('unhandledRejection',reason=>{// Mocha catches unhandled rejection from the user code and re-emits them to the process (see https://github.com/mochajs/mocha/blob/master/lib/runner.js#L198)
38
+
process.on('unhandledRejection',reason=>{// Mocha catches unhandled rejection from the user code and re-emits them to the process
39
39
throwreason;// Re-throw them so that the validation command fails in these cases (for example, if there is a syntax error when parsing JSON declaration files)
0 commit comments