Skip to content

Commit

Permalink
moving print_status out of tracker
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanDonovan committed Oct 29, 2011
1 parent 0125691 commit 8aa7ac6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/reporters/nested.js
Expand Up @@ -78,7 +78,7 @@ exports.run = function (files, options) {
// i.e., whether this part has been printed yet.
tracker.already_printed = {};

tracker.print_status = function (status, name_arr) {
var print_status = function (status, name_arr) {
var txt = '';
var space = " ";
var part, i, k;
Expand Down Expand Up @@ -118,9 +118,9 @@ exports.run = function (files, options) {
tracker.remove(name);

if (!assertions.failures()) {
tracker.print_status('pass', name);
print_status('pass', name);
} else {
tracker.print_status('fail', name);
print_status('fail', name);
assertions.forEach(function (a) {
if (a.failed()) {
a = utils.betterErrors(a);
Expand Down

0 comments on commit 8aa7ac6

Please sign in to comment.