Sha256: 5a894488d5b09c62874e971c3bac6437bcd052058aabc735c7b29c47c234b9fc

Contents?: true

Size: 604 Bytes

Versions: 4

Compression:

Stored size: 604 Bytes

Contents

/**
 * Module dependencies.
 */

var Base = require('./base');

/**
 * Expose `Min`.
 */

exports = module.exports = Min;

/**
 * Initialize a new `Min` minimal test reporter (best used with --watch).
 *
 * @param {Runner} runner
 * @api public
 */

function Min(runner) {
  Base.call(this, runner);
  
  runner.on('start', function(){
    // clear screen
    process.stdout.write('\u001b[2J');
    // set cursor position
    process.stdout.write('\u001b[1;3H');
  });

  runner.on('end', this.epilogue.bind(this));
}

/**
 * Inherit from `Base.prototype`.
 */

Min.prototype.__proto__ = Base.prototype;

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
stylus-source-0.31.0 vendor/node_modules/mocha/lib/reporters/min.js
stylus-source-0.30.1 vendor/node_modules/mocha/lib/reporters/min.js
stylus-source-0.30.0 vendor/node_modules/mocha/lib/reporters/min.js
stylus-source-0.29.0 vendor/node_modules/mocha/lib/reporters/min.js