From 3d154c0f437c6b97fbc7c58dda1d47779b832c72 Mon Sep 17 00:00:00 2001 From: Craig Taub Date: Fri, 27 Jan 2017 23:57:54 +0000 Subject: [PATCH] replace new with call --- test/reporters/doc.spec.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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',