Sha256: 9b64b733d0620e646cb3f09d2b55da2c2cff1d3181d1efeeba76ac5f90a10863

Contents?: true

Size: 472 Bytes

Versions: 36

Compression:

Stored size: 472 Bytes

Contents

/**
 * Module dependencies.
 */

var Runnable = require('./runnable');

/**
 * Expose `Test`.
 */

module.exports = Test;

/**
 * Initialize a new `Test` with the given `title` and callback `fn`.
 *
 * @param {String} title
 * @param {Function} fn
 * @api private
 */

function Test(title, fn) {
  Runnable.call(this, title, fn);
  this.pending = !fn;
  this.type = 'test';
}

/**
 * Inherit from `Runnable.prototype`.
 */

Test.prototype.__proto__ = Runnable.prototype;

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
stylus-source-0.42.2 vendor/node_modules/mocha/lib/test.js
stylus-source-0.42.1 vendor/node_modules/mocha/lib/test.js
stylus-source-0.42.0 vendor/node_modules/mocha/lib/test.js
stylus-source-0.41.3 vendor/node_modules/mocha/lib/test.js
stylus-source-0.41.2 vendor/node_modules/mocha/lib/test.js
stylus-source-0.41.1 vendor/node_modules/mocha/lib/test.js
stylus-source-0.41.0 vendor/node_modules/mocha/lib/test.js
stylus-source-0.40.3 vendor/node_modules/mocha/lib/test.js
stylus-source-0.40.2 vendor/node_modules/mocha/lib/test.js
stylus-source-0.40.1 vendor/node_modules/mocha/lib/test.js
stylus-source-0.40.0 vendor/node_modules/mocha/lib/test.js
stylus-source-0.39.4 vendor/node_modules/mocha/lib/test.js
stylus-source-0.39.3 vendor/node_modules/mocha/lib/test.js
stylus-source-0.39.2 vendor/node_modules/mocha/lib/test.js
stylus-source-0.39.1 vendor/node_modules/mocha/lib/test.js
stylus-source-0.39.0 vendor/node_modules/mocha/lib/test.js
stylus-source-0.38.0 vendor/node_modules/mocha/lib/test.js
stylus-source-0.37.0 vendor/node_modules/mocha/lib/test.js
stylus-source-0.36.1 vendor/node_modules/mocha/lib/test.js
stylus-source-0.36.0 vendor/node_modules/mocha/lib/test.js