Skip to content

Commit

Permalink
fix test + rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
craigtaub committed Jun 17, 2019
1 parent 19cc3f5 commit 97b3a9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/reporters/xunit.spec.js
Expand Up @@ -277,14 +277,14 @@ describe('XUnit reporter', function() {
});

describe('when output directed to console', function() {
it("should call 'console.log' with line", function() {
it("should call 'Base.consoleLog' with line", function() {
// :TODO: XUnit needs a trivially testable means to force console.log()
var realProcess = process;
process = false; // eslint-disable-line no-native-reassign, no-global-assign

var xunit = new XUnit(runner);
var fakeThis = {fileStream: false};
var consoleLogStub = sinon.stub(console, 'log');
var consoleLogStub = sinon.stub(Base, 'consoleLog');
xunit.write.call(fakeThis, expectedLine);
consoleLogStub.restore();

Expand Down

0 comments on commit 97b3a9d

Please sign in to comment.