Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Revert "change util.print to console.log"

This reverts commit f717975.
  • Loading branch information...
commit 5e786a2f028b167a0b29920124de37bfd77847ab 1 parent f717975
@nrstott nrstott authored
View
4 lib/jasmine-node/cli.js
@@ -197,7 +197,7 @@ function onExit() {
}
var onComplete = function(runner, log) {
- console.log('\n');
+ util.print('\n');
if (runner.results().failedCount == 0) {
exitCode = 0;
} else {
@@ -241,7 +241,7 @@ jasmine.executeSpecsInFolder(options);
function help(){
- console.log([
+ util.print([
'USAGE: jasmine-node [--color|--noColor] [--verbose] [--coffee] directory'
, ''
, 'Options:'
View
4 lib/jasmine-node/index.js
@@ -117,12 +117,12 @@ jasmine.executeSpecsInFolder = function(options){
if(teamcity){
jasmineEnv.addReporter(new jasmine.TeamcityReporter());
} else if(isVerbose) {
- jasmineEnv.addReporter(new jasmine.TerminalVerboseReporter({ print: console.log,
+ jasmineEnv.addReporter(new jasmine.TerminalVerboseReporter({ print: util.print,
color: showColors,
onComplete: done,
stackFilter: removeJasmineFrames}));
} else {
- jasmineEnv.addReporter(new jasmine.TerminalReporter({print: console.log,
+ jasmineEnv.addReporter(new jasmine.TerminalReporter({print: util.print,
color: showColors,
includeStackTrace: includeStackTrace,
onComplete: done,
View
2  lib/jasmine-node/reporter.js
@@ -17,7 +17,7 @@
jasmineNode.TerminalReporter = function(config) {
- this.print_ = config.print || console.log;
+ this.print_ = config.print || util.print;
this.color_ = config.color ? this.ANSIColors : this.NoColors;
this.started_ = false;
View
2  spec/helper_spec.js
@@ -4,4 +4,4 @@ describe("helper", function() {
expect(typeof(expectation.toHaveProperty)).toBe('function');
});
-});
+});
Please sign in to comment.
Something went wrong with that request. Please try again.