We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f16dd61 commit 67a6b13Copy full SHA for 67a6b13
test/common.js
@@ -360,8 +360,7 @@ process.on('exit', function() {
360
if (!exports.globalCheck) return;
361
var leaked = leakedGlobals();
362
if (leaked.length > 0) {
363
- console.error('Unknown globals: %s', leaked);
364
- assert.ok(false, 'Unknown global found');
+ exports.fail(`Unexpected global(s) found: ${leaked.join(', ')}`);
365
}
366
});
367
0 commit comments