chimpy
Version:
Develop acceptance tests & end-to-end tests with realtime feedback.
48 lines (40 loc) • 677 B
JavaScript
;
/**
* Consoler Constructor
*
* @param {Object} options
* @api public
*/
function Consoler(message, color) {
this.color = color || 'black';
this.message = message;
}
/**
* Start Consoler
*
* @param {Function} callback
* @api public
*/
Consoler.prototype.start = function (callback) {
console.log(this.message);
callback();
};
/**
* Stop Consoler
*
* @param {Function} callback
* @api public
*/
Consoler.prototype.stop = function (callback) {
callback();
};
/**
* Interrupt Consoler
*
* @param {Function} callback
* @api public
*/
Consoler.prototype.interrupt = function (callback) {
callback();
};
module.exports = Consoler;