Permalink
Browse files

Revert "change util.print to console.log"

This reverts commit f717975.
  • Loading branch information...
1 parent f717975 commit 5e786a2f028b167a0b29920124de37bfd77847ab @nrstott nrstott committed Dec 10, 2013
Showing with 6 additions and 6 deletions.
  1. +2 −2 lib/jasmine-node/cli.js
  2. +2 −2 lib/jasmine-node/index.js
  3. +1 −1 lib/jasmine-node/reporter.js
  4. +1 −1 spec/helper_spec.js
View
@@ -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:'
@@ -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,
@@ -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
@@ -4,4 +4,4 @@ describe("helper", function() {
expect(typeof(expectation.toHaveProperty)).toBe('function');
});
-});
+});

0 comments on commit 5e786a2

Please sign in to comment.