haste-server/node_modules/mocha/lib/hook.js

31 lines
428 B
JavaScript
Raw Normal View History

2012-02-06 20:09:01 +01:00
/**
* Module dependencies.
*/
var Runnable = require('./runnable');
/**
* Expose `Hook`.
*/
module.exports = Hook;
/**
* Initialize a new `Hook` with the given `title` and callback `fn`.
*
* @param {String} title
* @param {Function} fn
* @api private
*/
function Hook(title, fn) {
Runnable.call(this, title, fn);
}
/**
* Inherit from `Runnable.prototype`.
*/
Hook.prototype.__proto__ = Runnable.prototype;