diff --git a/lib/reporters/verbose.js b/lib/reporters/verbose.js index 902017868..0af9565dd 100644 --- a/lib/reporters/verbose.js +++ b/lib/reporters/verbose.js @@ -26,7 +26,7 @@ VerboseReporter.prototype.test = function (test) { } if (this.api.fileCount === 1 && this.api.testCount === 1 && test.title === '[anonymous]') { - return null; + return undefined; } // display duration only over a threshold diff --git a/test/reporters/verbose.js b/test/reporters/verbose.js index 1b189bc14..48a8b2e47 100644 --- a/test/reporters/verbose.js +++ b/test/reporters/verbose.js @@ -70,7 +70,7 @@ test('don\'t display test title if there is only one anonymous test', function ( title: '[anonymous]' }); - t.is(output, null); + t.is(output, undefined); t.end(); });