File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11var path = require ( 'path' ) ,
2- util = require ( 'util' ) ,
32 _ = require ( 'underscore' ) ;
43
54var istanbul , collector ;
@@ -43,7 +42,7 @@ exports.report = function() {
4342exports . 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) {
5352if ( ! 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 } ) ;
Original file line number Diff line number Diff 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
98var 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
Original file line number Diff line number Diff line change 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" },
You can’t perform that action at this time.
0 commit comments