mocha 3.0.1 → 3.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,14 @@
1
+ # 3.0.2 / 2016-08-08
2
+
3
+ ## :bug: Bug Fix
4
+
5
+ - [#2424]: Fix error loading Mocha via Require.js ([@boneskull])
6
+ - [#2417]: Fix execution of *deeply* nested `describe.only()` suites ([@not-an-aardvark])
7
+ - Remove references to `json-cov` and `html-cov` reporters in CLI ([@boneskull])
8
+
9
+ [#2417]: https://github.com/mochajs/mocha/issues/2417
10
+ [#2424]: https://github.com/mochajs/mocha/issues/2424
11
+
1
12
  # 3.0.1 / 2016-08-03
2
13
 
3
14
  ## :bug: Bug Fix
package/bin/_mocha CHANGED
@@ -144,8 +144,6 @@ program.on('reporters', function(){
144
144
  console.log(' tap - test-anything-protocol');
145
145
  console.log(' landing - unicode landing strip');
146
146
  console.log(' xunit - xunit reporter');
147
- console.log(' html-cov - HTML test coverage');
148
- console.log(' json-cov - JSON test coverage');
149
147
  console.log(' min - minimal reporter (great with --watch)');
150
148
  console.log(' json-stream - newline delimited json events');
151
149
  console.log(' markdown - markdown documentation (github flavour)');
package/lib/runner.js CHANGED
@@ -855,10 +855,10 @@ function filterOnly(suite) {
855
855
  // Otherwise, do not run any of the tests in this suite.
856
856
  suite.tests = [];
857
857
  suite._onlySuites.forEach(function(onlySuite) {
858
- // If there are other `only` tests/suites nested in the current `only` suite, then filter the current suite.
858
+ // If there are other `only` tests/suites nested in the current `only` suite, then filter that `only` suite.
859
859
  // Otherwise, all of the tests on this `only` suite should be run, so don't filter it.
860
860
  if (hasOnly(onlySuite)) {
861
- filterOnly(suite);
861
+ filterOnly(onlySuite);
862
862
  }
863
863
  });
864
864
  // Run the `only` suites, as well as any other suites that have `only` tests/suites as descendants.
package/mocha.js CHANGED
@@ -5251,10 +5251,10 @@ function filterOnly(suite) {
5251
5251
  // Otherwise, do not run any of the tests in this suite.
5252
5252
  suite.tests = [];
5253
5253
  suite._onlySuites.forEach(function(onlySuite) {
5254
- // If there are other `only` tests/suites nested in the current `only` suite, then filter the current suite.
5254
+ // If there are other `only` tests/suites nested in the current `only` suite, then filter that `only` suite.
5255
5255
  // Otherwise, all of the tests on this `only` suite should be run, so don't filter it.
5256
5256
  if (hasOnly(onlySuite)) {
5257
- filterOnly(suite);
5257
+ filterOnly(onlySuite);
5258
5258
  }
5259
5259
  });
5260
5260
  // Run the `only` suites, as well as any other suites that have `only` tests/suites as descendants.
@@ -9314,7 +9314,7 @@ function objectToString(o) {
9314
9314
  /*global module */
9315
9315
  if (typeof module !== 'undefined' && module.exports) {
9316
9316
  module.exports = JsDiff;
9317
- } else if (typeof define === 'function' && define.amd) {
9317
+ } else if (false) {
9318
9318
  /*global define */
9319
9319
  define([], function() { return JsDiff; });
9320
9320
  } else if (typeof global.JsDiff === 'undefined') {
@@ -10076,7 +10076,7 @@ module.exports = Array.isArray || function (arr) {
10076
10076
  ;(function () {
10077
10077
  // Detect the `define` function exposed by asynchronous module loaders. The
10078
10078
  // strict `define` check is necessary for compatibility with `r.js`.
10079
- var isLoader = typeof define === "function" && define.amd;
10079
+ var isLoader = false;
10080
10080
 
10081
10081
  // A set of types used to distinguish objects from primitives.
10082
10082
  var objectTypes = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mocha",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "description": "simple, flexible, fun test framework",
5
5
  "keywords": [
6
6
  "mocha",