-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
37 changed files
with
1,627 additions
and
6,008 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,5 +21,5 @@ yarn.lock | |
*_REMOTE_* | ||
docs/_site | ||
docs/_dist | ||
docs/api | ||
.vscode/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,10 +5,7 @@ | |
* Copyright(c) 2011 TJ Holowaychuk <[email protected]> | ||
* MIT Licensed | ||
*/ | ||
/** | ||
* @namespace Mocha | ||
* @module Mocha | ||
*/ | ||
|
||
/** | ||
* Module dependencies. | ||
*/ | ||
|
@@ -37,25 +34,11 @@ if (!process.browser) { | |
* Expose internals. | ||
*/ | ||
|
||
/** | ||
* @public | ||
* @class utils | ||
* @memberof Mocha | ||
*/ | ||
exports.utils = utils; | ||
exports.interfaces = require('./interfaces'); | ||
/** | ||
* | ||
* @memberof Mocha | ||
* @public | ||
*/ | ||
exports.reporters = reporters; | ||
exports.Runnable = require('./runnable'); | ||
exports.Context = require('./context'); | ||
/** | ||
* | ||
* @memberof Mocha | ||
*/ | ||
exports.Runner = require('./runner'); | ||
exports.Suite = require('./suite'); | ||
exports.Hook = require('./hook'); | ||
|
@@ -88,8 +71,6 @@ function image (name) { | |
* - `fullTrace` display the full stack-trace on failing | ||
* - `grep` string or regexp to filter tests with | ||
* | ||
* @public | ||
* @class Mocha | ||
* @param {Object} options | ||
* @api public | ||
*/ | ||
|
@@ -125,7 +106,6 @@ function Mocha (options) { | |
/** | ||
* Enable or disable bailing on the first failure. | ||
* | ||
* @public | ||
* @api public | ||
* @param {boolean} [bail] | ||
*/ | ||
|
@@ -140,7 +120,6 @@ Mocha.prototype.bail = function (bail) { | |
/** | ||
* Add test `file`. | ||
* | ||
* @public | ||
* @api public | ||
* @param {string} file | ||
*/ | ||
|
@@ -152,7 +131,6 @@ Mocha.prototype.addFile = function (file) { | |
/** | ||
* Set reporter to `reporter`, defaults to "spec". | ||
* | ||
* @public | ||
* @param {String|Function} reporter name or constructor | ||
* @param {Object} reporterOptions optional options | ||
* @api public | ||
|
@@ -203,7 +181,7 @@ Mocha.prototype.reporter = function (reporter, reporterOptions) { | |
|
||
/** | ||
* Set test UI `name`, defaults to "bdd". | ||
* @public | ||
* | ||
* @api public | ||
* @param {string} bdd | ||
*/ | ||
|
@@ -282,7 +260,6 @@ Mocha.prototype._growl = function (runner, reporter) { | |
/** | ||
* Escape string and add it to grep as a regexp. | ||
* | ||
* @public | ||
* @api public | ||
* @param str | ||
* @returns {Mocha} | ||
|
@@ -294,7 +271,6 @@ Mocha.prototype.fgrep = function (str) { | |
/** | ||
* Add regexp to grep, if `re` is a string it is escaped. | ||
* | ||
* @public | ||
* @param {RegExp|String} re | ||
* @return {Mocha} | ||
* @api public | ||
|
@@ -314,7 +290,6 @@ Mocha.prototype.grep = function (re) { | |
/** | ||
* Invert `.grep()` matches. | ||
* | ||
* @public | ||
* @return {Mocha} | ||
* @api public | ||
*/ | ||
|
@@ -326,7 +301,6 @@ Mocha.prototype.invert = function () { | |
/** | ||
* Ignore global leaks. | ||
* | ||
* @public | ||
* @param {Boolean} ignore | ||
* @return {Mocha} | ||
* @api public | ||
|
@@ -343,7 +317,6 @@ Mocha.prototype.ignoreLeaks = function (ignore) { | |
* | ||
* @return {Mocha} | ||
* @api public | ||
* @public | ||
*/ | ||
Mocha.prototype.checkLeaks = function () { | ||
this.options.ignoreLeaks = false; | ||
|
@@ -355,7 +328,6 @@ Mocha.prototype.checkLeaks = function () { | |
* | ||
* @return {Mocha} | ||
* @api public | ||
* @public | ||
*/ | ||
Mocha.prototype.fullTrace = function () { | ||
this.options.fullStackTrace = true; | ||
|
@@ -367,7 +339,6 @@ Mocha.prototype.fullTrace = function () { | |
* | ||
* @return {Mocha} | ||
* @api public | ||
* @public | ||
*/ | ||
Mocha.prototype.growl = function () { | ||
this.options.growl = true; | ||
|
@@ -380,7 +351,6 @@ Mocha.prototype.growl = function () { | |
* @param {Array|String} globals | ||
* @return {Mocha} | ||
* @api public | ||
* @public | ||
* @param {Array|string} globals | ||
* @return {Mocha} | ||
*/ | ||
|
@@ -395,7 +365,6 @@ Mocha.prototype.globals = function (globals) { | |
* @param {Boolean} colors | ||
* @return {Mocha} | ||
* @api public | ||
* @public | ||
* @param {boolean} colors | ||
* @return {Mocha} | ||
*/ | ||
|
@@ -412,7 +381,6 @@ Mocha.prototype.useColors = function (colors) { | |
* @param {Boolean} inlineDiffs | ||
* @return {Mocha} | ||
* @api public | ||
* @public | ||
* @param {boolean} inlineDiffs | ||
* @return {Mocha} | ||
*/ | ||
|
@@ -427,7 +395,6 @@ Mocha.prototype.useInlineDiffs = function (inlineDiffs) { | |
* @param {Boolean} hideDiff | ||
* @return {Mocha} | ||
* @api public | ||
* @public | ||
* @param {boolean} hideDiff | ||
* @return {Mocha} | ||
*/ | ||
|
@@ -442,7 +409,6 @@ Mocha.prototype.hideDiff = function (hideDiff) { | |
* @param {Number} timeout | ||
* @return {Mocha} | ||
* @api public | ||
* @public | ||
* @param {number} timeout | ||
* @return {Mocha} | ||
*/ | ||
|
@@ -457,7 +423,6 @@ Mocha.prototype.timeout = function (timeout) { | |
* @param {Number} retry times | ||
* @return {Mocha} | ||
* @api public | ||
* @public | ||
*/ | ||
Mocha.prototype.retries = function (n) { | ||
this.suite.retries(n); | ||
|
@@ -470,7 +435,6 @@ Mocha.prototype.retries = function (n) { | |
* @param {Number} slow | ||
* @return {Mocha} | ||
* @api public | ||
* @public | ||
* @param {number} slow | ||
* @return {Mocha} | ||
*/ | ||
|
@@ -485,7 +449,6 @@ Mocha.prototype.slow = function (slow) { | |
* @param {Boolean} enabled | ||
* @return {Mocha} | ||
* @api public | ||
* @public | ||
* @param {boolean} enabled | ||
* @return {Mocha} | ||
*/ | ||
|
@@ -499,7 +462,6 @@ Mocha.prototype.enableTimeouts = function (enabled) { | |
* | ||
* @return {Mocha} | ||
* @api public | ||
* @public | ||
*/ | ||
Mocha.prototype.asyncOnly = function () { | ||
this.options.asyncOnly = true; | ||
|
@@ -510,7 +472,6 @@ Mocha.prototype.asyncOnly = function () { | |
* Disable syntax highlighting (in browser). | ||
* | ||
* @api public | ||
* @public | ||
*/ | ||
Mocha.prototype.noHighlighting = function () { | ||
this.options.noHighlighting = true; | ||
|
@@ -522,7 +483,6 @@ Mocha.prototype.noHighlighting = function () { | |
* | ||
* @return {Mocha} | ||
* @api public | ||
* @public | ||
*/ | ||
Mocha.prototype.allowUncaught = function () { | ||
this.options.allowUncaught = true; | ||
|
@@ -568,7 +528,6 @@ Mocha.prototype.forbidPending = function () { | |
* cache first in whichever manner best suits your needs. | ||
* | ||
* @api public | ||
* @public | ||
* @param {Function} fn | ||
* @return {Runner} | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.