get function name change

This commit is contained in:
Wise Colt
2020-03-28 03:15:21 +03:00
parent fba7b9bf01
commit 2d8a42e5fd
4896 changed files with 515350 additions and 8 deletions

44
node_modules/mocha/lib/reporters/min.js generated vendored Normal file
View File

@@ -0,0 +1,44 @@
'use strict';
/**
* @module Min
*/
/**
* Module dependencies.
*/
var Base = require('./base');
var inherits = require('../utils').inherits;
/**
* Expose `Min`.
*/
exports = module.exports = Min;
/**
* Initialize a new `Min` minimal test reporter (best used with --watch).
*
* @public
* @class
* @memberof Mocha.reporters
* @extends Mocha.reporters.Base
* @api public
* @param {Runner} runner
*/
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.once('end', this.epilogue.bind(this));
}
/**
* Inherit from `Base.prototype`.
*/
inherits(Min, Base);