packages/swig-spec/lib/jasmine-nyan-reporter.js
function () {

      function draw(color, n) {
        n = Math.max(parseInt(n), 0);

        write(' ');
        write('\u001b[' + color + 'm' + n + '\u001b[0m');
        write('\n');
      }

      draw(colors.green, this.passed);
      draw(colors.fail, this.failed);
      draw(colors.pending, this.pending + ' ');
      write('\n');

      cursor.up(this.numberOfLines);
    }
function () {

      function draw(color, n) {
        n = Math.max(parseInt(n), 0);

        write(' ');
        write('\u001b[' + color + 'm' + n + '\u001b[0m');
        write('\n');
      }

      draw(colors.green, this.passed);
      draw(colors.fail, this.failed);
      draw(colors.pending, this.pending + ' ');
      write('\n');

      cursor.up(this.numberOfLines);
    }
function ( ) { function draw ( color , n ) { n = Math . max ( parseInt ( n ) , 0 ) ; write ( ' ' ) ; write ( '\u001b[' + color + 'm' + n + '\u001b[0m' ) ; write ( '\n' ) ; } draw ( colors . green , this . passed ) ; draw ( colors . fail , this . failed ) ; draw ( colors . pending , this . pending + ' ' ) ; write ( '\n' ) ; cursor . up ( this . numberOfLines ) ; }
Draw the "scoreboard" showing the number
of passes, failures and pending tests.

@api private
Draw the scoreboard showing the number of passes failures and pending tests .