Skip to content

Commit

Permalink
updated testrunner to use new callback arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
Caolan McMahon committed Mar 10, 2010
1 parent 1e7b857 commit b5478c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/testrunner.js
Expand Up @@ -2,9 +2,9 @@ var nodeunit = require('./nodeunit'),
sys = require('sys');


var showResult = function(failures, total){
if(failures){
sys.puts('\nFAILURES: ' + failures + '/' + total + ' failed.');
var showResult = function(r){
if(r.failed()){
sys.puts('\nFAILURES: ' + r.failures + '/' + r.total + ' failed.');
}
else {
sys.puts('\nOK');
Expand Down

0 comments on commit b5478c2

Please sign in to comment.