diff --git a/test/reporters/doc.spec.js b/test/reporters/doc.spec.js index f62c833183..61a5016e8f 100644 --- a/test/reporters/doc.spec.js +++ b/test/reporters/doc.spec.js @@ -28,7 +28,7 @@ describe('Doc reporter', function () { callback(suite); } }; - Doc(runner); + Doc.call(this, runner); process.stdout.write = stdoutWrite; var expectedArray = [ '
\n', @@ -48,7 +48,7 @@ describe('Doc reporter', function () { callback(suite); } }; - Doc(runner); + Doc.call(this, runner); process.stdout.write = stdoutWrite; stdout.should.be.empty(); }); @@ -66,7 +66,7 @@ describe('Doc reporter', function () { callback(suite); } }; - Doc(runner); + Doc.call(this, runner); process.stdout.write = stdoutWrite; var expectedArray = [ ' \n', '
\n' @@ -84,7 +84,7 @@ describe('Doc reporter', function () { callback(suite); } }; - Doc(runner); + Doc.call(this, runner); process.stdout.write = stdoutWrite; stdout.should.be.empty(); }); @@ -107,7 +107,7 @@ describe('Doc reporter', function () { callback(test); } }; - Doc(runner); + Doc.call(this, runner); process.stdout.write = stdoutWrite; var expectedArray = [ '
' + expectedTitle + '
\n', @@ -133,7 +133,7 @@ describe('Doc reporter', function () { callback(test); } }; - Doc(runner); + Doc.call(this, runner); process.stdout.write = stdoutWrite; var expectedArray = [ '
' + expectedTitle + '
\n',