Skip to content

Commit

Permalink
replace new with call
Browse files Browse the repository at this point in the history
  • Loading branch information
craigtaub committed Jan 27, 2017
1 parent dc01323 commit 3d154c0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/reporters/doc.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe('Doc reporter', function () {
callback(suite);
}
};
Doc(runner);
Doc.call(this, runner);
process.stdout.write = stdoutWrite;
var expectedArray = [
' <section class="suite">\n',
Expand All @@ -48,7 +48,7 @@ describe('Doc reporter', function () {
callback(suite);
}
};
Doc(runner);
Doc.call(this, runner);
process.stdout.write = stdoutWrite;
stdout.should.be.empty();
});
Expand All @@ -66,7 +66,7 @@ describe('Doc reporter', function () {
callback(suite);
}
};
Doc(runner);
Doc.call(this, runner);
process.stdout.write = stdoutWrite;
var expectedArray = [
' </dl>\n', '</section>\n'
Expand All @@ -84,7 +84,7 @@ describe('Doc reporter', function () {
callback(suite);
}
};
Doc(runner);
Doc.call(this, runner);
process.stdout.write = stdoutWrite;
stdout.should.be.empty();
});
Expand All @@ -107,7 +107,7 @@ describe('Doc reporter', function () {
callback(test);
}
};
Doc(runner);
Doc.call(this, runner);
process.stdout.write = stdoutWrite;
var expectedArray = [
' <dt>' + expectedTitle + '</dt>\n',
Expand All @@ -133,7 +133,7 @@ describe('Doc reporter', function () {
callback(test);
}
};
Doc(runner);
Doc.call(this, runner);
process.stdout.write = stdoutWrite;
var expectedArray = [
' <dt class="error">' + expectedTitle + '</dt>\n',
Expand Down

0 comments on commit 3d154c0

Please sign in to comment.