Skip to content

Commit

Permalink
fix console require
Browse files Browse the repository at this point in the history
  • Loading branch information
JerrySievert committed Aug 10, 2012
1 parent e5a000b commit fb123cc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/vows/reporters/tap.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var options = {
tail: "\n"
};
var console = require("vows/lib/vows/console");
var console = require("../console");
var stylize = console.stylize;
var puts = console.puts(options);

Expand All @@ -12,7 +12,7 @@ var puts = console.puts(options);
this.name = "tap";
this.setSTream = function setStream(s) {
options.stream = s;
}
};

var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
var TapInterface = (function() {
Expand All @@ -39,7 +39,7 @@ var TapInterface = (function() {
};

TapInterface.prototype.bailOut = function(reason) {
return "Bail out!" + (reason != null ? " " + reason : "");
return "Bail out!" + (reason !== null ? " " + reason : "");

This comment has been minimized.

Copy link
@execjosh

execjosh Mar 25, 2013

I think my intent had been to test for undefined, too, here (i.e., the case when bailOut is called without any arguments).

};

TapInterface.prototype.testCount = function() {
Expand Down Expand Up @@ -93,8 +93,8 @@ this.report = function report(data) {
puts("# " + JSON.stringify(data));
break;
}
}
};

this.print = function print(str) {
require("util").print(str);
}
};

0 comments on commit fb123cc

Please sign in to comment.