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 d622b67 commit 53f2848Copy full SHA for 53f2848
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