Skip to content

Commit fb123cc

Browse files
committed
fix console require
1 parent e5a000b commit fb123cc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/vows/reporters/tap.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
var options = {
22
tail: "\n"
33
};
4-
var console = require("vows/lib/vows/console");
4+
var console = require("../console");
55
var stylize = console.stylize;
66
var puts = console.puts(options);
77

@@ -12,7 +12,7 @@ var puts = console.puts(options);
1212
this.name = "tap";
1313
this.setSTream = function setStream(s) {
1414
options.stream = s;
15-
}
15+
};
1616

1717
var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
1818
var TapInterface = (function() {
@@ -39,7 +39,7 @@ var TapInterface = (function() {
3939
};
4040

4141
TapInterface.prototype.bailOut = function(reason) {
42-
return "Bail out!" + (reason != null ? " " + reason : "");
42+
return "Bail out!" + (reason !== null ? " " + reason : "");
4343
};
4444

4545
TapInterface.prototype.testCount = function() {
@@ -93,8 +93,8 @@ this.report = function report(data) {
9393
puts("# " + JSON.stringify(data));
9494
break;
9595
}
96-
}
96+
};
9797

9898
this.print = function print(str) {
9999
require("util").print(str);
100-
}
100+
};

0 commit comments

Comments
 (0)