source: Dev/trunk/node_modules/mocha/lib/test.js @ 484

Last change on this file since 484 was 484, checked in by hendrikvanantwerpen, 11 years ago

Commit node_modules, to make checkouts and builds more deterministic.

File size: 472 bytes
Line 
1
2/**
3 * Module dependencies.
4 */
5
6var Runnable = require('./runnable');
7
8/**
9 * Expose `Test`.
10 */
11
12module.exports = Test;
13
14/**
15 * Initialize a new `Test` with the given `title` and callback `fn`.
16 *
17 * @param {String} title
18 * @param {Function} fn
19 * @api private
20 */
21
22function Test(title, fn) {
23  Runnable.call(this, title, fn);
24  this.pending = !fn;
25  this.type = 'test';
26}
27
28/**
29 * Inherit from `Runnable.prototype`.
30 */
31
32Test.prototype.__proto__ = Runnable.prototype;
Note: See TracBrowser for help on using the repository browser.