☕️ Classic, reliable, trusted test framework for Node.js and the browser
#1329 again: fixed boolean blunder
Christopher Hiller340cb56aae5d
diff --git a/mocha.js b/mocha.jsindex 1cd09907..2135a955 100644--- a/mocha.js+++ b/mocha.js@@ -5990,7 +5990,7 @@ mocha.run = function(fn){return Mocha.prototype.run.call(mocha, function(err){// The DOM Document is not available in Web Workers.- if (global.document && options.noHighlighting !== false) {+ if (global.document && options.noHighlighting !== true) {Mocha.utils.highlightTags('code');}if (fn) fn(err);diff --git a/support/tail.js b/support/tail.jsindex 1abea5de..5635fa5f 100644--- a/support/tail.js+++ b/support/tail.js@@ -144,7 +144,7 @@ mocha.run = function(fn){return Mocha.prototype.run.call(mocha, function(err){// The DOM Document is not available in Web Workers.- if (global.document && options.noHighlighting !== false) {+ if (global.document && options.noHighlighting !== true) {Mocha.utils.highlightTags('code');}if (fn) fn(err);