Вход Регистрация
Файл: error-kitty/node_modules/mocha/lib/test.js
Строк: 30
<?php
/**
 * 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(titlefn) {
  
Runnable.call(thistitlefn);
  
this.pending = !fn;
  
this.type 'test';
}

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

Test.prototype.__proto__ Runnable.prototype;
?>
Онлайн: 0
Реклама