Skip to content

Commit 0542636

Browse files
committed
fix util.print warning
1 parent 0754fa3 commit 0542636

3 files changed

Lines changed: 6 additions & 8 deletions

File tree

lib/coverage.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
var path = require('path'),
2-
util = require('util'),
32
_ = require('underscore');
43

54
var istanbul, collector;
@@ -43,7 +42,7 @@ exports.report = function() {
4342
exports.instrument = function(options) {
4443
var matcher, instrumenter;
4544

46-
matcher = function (file) {
45+
matcher = function (file) {
4746
return file === options.code.path;
4847
}
4948
instrumenter = new istanbul.Instrumenter();
@@ -53,7 +52,7 @@ exports.instrument = function(options) {
5352
if (!istanbul) {
5453
_.each(exports, function(fn, name) {
5554
exports[name] = function() {
56-
util.error('\nModule "istanbul" is not installed.'.red);
55+
console.error('\nModule "istanbul" is not installed.'.red);
5756
process.exit(1);
5857
};
5958
});

lib/testrunner.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ var fs = require('fs'),
33
coverage = require('./coverage'),
44
cp = require('child_process'),
55
_ = require('underscore'),
6-
log = exports.log = require('./log'),
7-
util = require('util');
6+
log = exports.log = require('./log');
87

98
var options,
109
noop = function() {};
@@ -83,7 +82,7 @@ function runOne(opts, callback) {
8382
log.add('coverages', msg.data.coverage);
8483
}
8584
if (opts.log.testing) {
86-
util.print('done');
85+
console.log('done');
8786
}
8887
callback(null, msg.data);
8988
kill();
@@ -96,7 +95,7 @@ function runOne(opts, callback) {
9695
process.on('exit', kill);
9796

9897
if (opts.log.testing) {
99-
util.print('\nTesting ', opts.code.path + ' ... ');
98+
console.log('\nTesting ', opts.code.path + ' ... ');
10099
}
101100
}
102101

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "qunit",
33
"description": "QUnit testing framework for nodejs",
4-
"version": "0.6.3",
4+
"version": "0.6.4",
55
"author": "Oleg Slobodskoi <oleg008@gmail.com>",
66
"contributors": [
77
{"name": "Jonathan Buchanan"},

0 commit comments

Comments
 (0)