aboutsummaryrefslogtreecommitdiff
path: root/node_modules/mocha/lib/test.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/mocha/lib/test.js')
-rw-r--r--node_modules/mocha/lib/test.js44
1 files changed, 0 insertions, 44 deletions
diff --git a/node_modules/mocha/lib/test.js b/node_modules/mocha/lib/test.js
deleted file mode 100644
index a95cd31a4..000000000
--- a/node_modules/mocha/lib/test.js
+++ /dev/null
@@ -1,44 +0,0 @@
-/**
- * Module dependencies.
- */
-
-var Runnable = require('./runnable');
-var inherits = require('./utils').inherits;
-
-/**
- * Expose `Test`.
- */
-
-module.exports = Test;
-
-/**
- * Initialize a new `Test` with the given `title` and callback `fn`.
- *
- * @api private
- * @param {String} title
- * @param {Function} fn
- */
-function Test(title, fn) {
- Runnable.call(this, title, fn);
- this.pending = !fn;
- this.type = 'test';
-}
-
-/**
- * Inherit from `Runnable.prototype`.
- */
-inherits(Test, Runnable);
-
-Test.prototype.clone = function() {
- var test = new Test(this.title, this.fn);
- test.timeout(this.timeout());
- test.slow(this.slow());
- test.enableTimeouts(this.enableTimeouts());
- test.retries(this.retries());
- test.currentRetry(this.currentRetry());
- test.globals(this.globals());
- test.parent = this.parent;
- test.file = this.file;
- test.ctx = this.ctx;
- return test;
-};