mocha 2.4.4 → 2.4.5

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,12 @@
1
+ 2.4.5 / 2016-01-28
2
+ ==================
3
+
4
+ * [#2080], [#2078], [#2072], [#2073], [#1200] - Revert changes to console colors in changeset [1192914](https://github.com/mochajs/mocha/commit/119291449cd03a11cdeda9e37cf718a69a012896) and subsequent related changes thereafter. Restores compatibility with IE8 & PhantomJS. See also [mantoni/mochify.js#129](https://github.com/mantoni/mochify.js/issues/129) and [openlayers/ol3#4746](https://github.com/openlayers/ol3/pull/4746) ([@boneskull])
5
+ * [#2082] - Fix several test assertions ([@mislav])
6
+
7
+ [#1200]: https://github.com/mochajs/mocha/issues/1200
8
+ [#2082]: https://github.com/mochajs/mocha/pull/2082
9
+
1
10
  2.4.4 / 2016-01-27
2
11
  ==================
3
12
 
@@ -7,8 +7,6 @@ var diff = require('diff');
7
7
  var ms = require('../ms');
8
8
  var utils = require('../utils');
9
9
  var supportsColor = process.browser ? null : require('supports-color');
10
- var chalk = require('chalk');
11
- chalk.enabled = supportsColor;
12
10
 
13
11
  /**
14
12
  * Expose `Base`.
@@ -52,25 +50,25 @@ exports.inlineDiffs = false;
52
50
  */
53
51
 
54
52
  exports.colors = {
55
- pass: chalk.gray,
56
- fail: chalk.red,
57
- 'bright pass': chalk.green.bold,
58
- 'bright fail': chalk.red.bold,
59
- 'bright yellow': chalk.yellow.bold,
60
- pending: chalk.cyan,
61
- suite: chalk.white,
62
- 'error title': chalk.gray,
63
- 'error message': chalk.red,
64
- 'error stack': chalk.white,
65
- checkmark: chalk.green,
66
- fast: chalk.gray,
67
- medium: chalk.yellow,
68
- slow: chalk.red,
69
- green: chalk.green,
70
- light: chalk.white.bold,
71
- 'diff gutter': chalk.gray,
72
- 'diff added': chalk.green,
73
- 'diff removed': chalk.red
53
+ pass: 90,
54
+ fail: 31,
55
+ 'bright pass': 92,
56
+ 'bright fail': 91,
57
+ 'bright yellow': 93,
58
+ pending: 36,
59
+ suite: 0,
60
+ 'error title': 0,
61
+ 'error message': 31,
62
+ 'error stack': 90,
63
+ checkmark: 32,
64
+ fast: 90,
65
+ medium: 33,
66
+ slow: 31,
67
+ green: 32,
68
+ light: 90,
69
+ 'diff gutter': 90,
70
+ 'diff added': 32,
71
+ 'diff removed': 31
74
72
  };
75
73
 
76
74
  /**
@@ -105,7 +103,7 @@ var color = exports.color = function(type, str) {
105
103
  if (!exports.useColors) {
106
104
  return String(str);
107
105
  }
108
- return exports.colors[type](str);
106
+ return '\u001b[' + exports.colors[type] + 'm' + str + '\u001b[0m';
109
107
  };
110
108
 
111
109
  /**
@@ -6,7 +6,6 @@ var Base = require('./base');
6
6
  var inherits = require('../utils').inherits;
7
7
  var cursor = Base.cursor;
8
8
  var color = Base.color;
9
- var chalk = require('chalk');
10
9
 
11
10
  /**
12
11
  * Expose `Landing`.
@@ -18,19 +17,19 @@ exports = module.exports = Landing;
18
17
  * Airplane color.
19
18
  */
20
19
 
21
- Base.colors.plane = chalk.white;
20
+ Base.colors.plane = 0;
22
21
 
23
22
  /**
24
23
  * Airplane crash color.
25
24
  */
26
25
 
27
- Base.colors['plane crash'] = chalk.red;
26
+ Base.colors['plane crash'] = 31;
28
27
 
29
28
  /**
30
29
  * Runway color.
31
30
  */
32
31
 
33
- Base.colors.runway = chalk.gray;
32
+ Base.colors.runway = 90;
34
33
 
35
34
  /**
36
35
  * Initialize a new `Landing` reporter.
@@ -6,7 +6,6 @@ var Base = require('./base');
6
6
  var inherits = require('../utils').inherits;
7
7
  var color = Base.color;
8
8
  var cursor = Base.cursor;
9
- var chalk = require('chalk');
10
9
 
11
10
  /**
12
11
  * Expose `Progress`.
@@ -18,7 +17,7 @@ exports = module.exports = Progress;
18
17
  * General progress bar color.
19
18
  */
20
19
 
21
- Base.colors.progress = chalk.gray;
20
+ Base.colors.progress = 90;
22
21
 
23
22
  /**
24
23
  * Initialize a new `Progress` bar test reporter.
package/mocha.js CHANGED
@@ -5,52 +5,13 @@ module.exports = process.env.COV
5
5
  : require('./lib/mocha');
6
6
 
7
7
  }).call(this,require('_process'))
8
- },{"./lib-cov/mocha":undefined,"./lib/mocha":15,"_process":52}],2:[function(require,module,exports){
9
- 'use strict';
10
-
11
- // nasty stub
12
-
13
- var chalk = {};
14
- var colors = [
15
- 'reset',
16
- 'bold',
17
- 'italic',
18
- 'underline',
19
- 'inverse',
20
- 'strikethrough',
21
- 'black',
22
- 'red',
23
- 'green',
24
- 'yellow',
25
- 'blue',
26
- 'magenta',
27
- 'cyan',
28
- 'white',
29
- 'gray',
30
- 'bgBlack',
31
- 'bgRed',
32
- 'bgGreen',
33
- 'bgYellow',
34
- 'bgBlue',
35
- 'bgMagenta',
36
- 'bgCyan',
37
- 'bgWhite'
38
- ];
39
-
40
- var i = colors.length;
41
- while (i--) {
42
- chalk[colors[i]] = chalk;
43
- }
44
-
45
- module.exports = chalk;
46
-
47
- },{}],3:[function(require,module,exports){
8
+ },{"./lib-cov/mocha":undefined,"./lib/mocha":14,"_process":51}],2:[function(require,module,exports){
48
9
  /* eslint-disable no-unused-vars */
49
10
  module.exports = function(type) {
50
11
  return function() {};
51
12
  };
52
13
 
53
- },{}],4:[function(require,module,exports){
14
+ },{}],3:[function(require,module,exports){
54
15
  /**
55
16
  * Module exports.
56
17
  */
@@ -245,7 +206,7 @@ EventEmitter.prototype.emit = function(name) {
245
206
  return true;
246
207
  };
247
208
 
248
- },{}],5:[function(require,module,exports){
209
+ },{}],4:[function(require,module,exports){
249
210
  /**
250
211
  * Expose `Progress`.
251
212
  */
@@ -364,7 +325,7 @@ Progress.prototype.draw = function(ctx) {
364
325
  return this;
365
326
  };
366
327
 
367
- },{}],6:[function(require,module,exports){
328
+ },{}],5:[function(require,module,exports){
368
329
  (function (global){
369
330
  exports.isatty = function isatty() {
370
331
  return true;
@@ -379,7 +340,7 @@ exports.getWindowSize = function getWindowSize() {
379
340
  };
380
341
 
381
342
  }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
382
- },{}],7:[function(require,module,exports){
343
+ },{}],6:[function(require,module,exports){
383
344
  /**
384
345
  * Expose `Context`.
385
346
  */
@@ -485,7 +446,7 @@ Context.prototype.inspect = function() {
485
446
  }, 2);
486
447
  };
487
448
 
488
- },{}],8:[function(require,module,exports){
449
+ },{}],7:[function(require,module,exports){
489
450
  /**
490
451
  * Module dependencies.
491
452
  */
@@ -533,7 +494,7 @@ Hook.prototype.error = function(err) {
533
494
  this._error = err;
534
495
  };
535
496
 
536
- },{"./runnable":36,"./utils":40}],9:[function(require,module,exports){
497
+ },{"./runnable":35,"./utils":39}],8:[function(require,module,exports){
537
498
  /**
538
499
  * Module dependencies.
539
500
  */
@@ -652,7 +613,7 @@ module.exports = function(suite) {
652
613
  });
653
614
  };
654
615
 
655
- },{"../suite":38,"../test":39,"./common":10,"escape-string-regexp":69}],10:[function(require,module,exports){
616
+ },{"../suite":37,"../test":38,"./common":9,"escape-string-regexp":68}],9:[function(require,module,exports){
656
617
  'use strict';
657
618
 
658
619
  /**
@@ -739,7 +700,7 @@ module.exports = function(suites, context) {
739
700
  };
740
701
  };
741
702
 
742
- },{}],11:[function(require,module,exports){
703
+ },{}],10:[function(require,module,exports){
743
704
  /**
744
705
  * Module dependencies.
745
706
  */
@@ -802,13 +763,13 @@ module.exports = function(suite) {
802
763
  }
803
764
  };
804
765
 
805
- },{"../suite":38,"../test":39}],12:[function(require,module,exports){
766
+ },{"../suite":37,"../test":38}],11:[function(require,module,exports){
806
767
  exports.bdd = require('./bdd');
807
768
  exports.tdd = require('./tdd');
808
769
  exports.qunit = require('./qunit');
809
770
  exports.exports = require('./exports');
810
771
 
811
- },{"./bdd":9,"./exports":11,"./qunit":13,"./tdd":14}],13:[function(require,module,exports){
772
+ },{"./bdd":8,"./exports":10,"./qunit":12,"./tdd":13}],12:[function(require,module,exports){
812
773
  /**
813
774
  * Module dependencies.
814
775
  */
@@ -904,7 +865,7 @@ module.exports = function(suite) {
904
865
  });
905
866
  };
906
867
 
907
- },{"../suite":38,"../test":39,"./common":10,"escape-string-regexp":69}],14:[function(require,module,exports){
868
+ },{"../suite":37,"../test":38,"./common":9,"escape-string-regexp":68}],13:[function(require,module,exports){
908
869
  /**
909
870
  * Module dependencies.
910
871
  */
@@ -1012,7 +973,7 @@ module.exports = function(suite) {
1012
973
  });
1013
974
  };
1014
975
 
1015
- },{"../suite":38,"../test":39,"./common":10,"escape-string-regexp":69}],15:[function(require,module,exports){
976
+ },{"../suite":37,"../test":38,"./common":9,"escape-string-regexp":68}],14:[function(require,module,exports){
1016
977
  (function (process,global,__dirname){
1017
978
  /*!
1018
979
  * mocha
@@ -1518,7 +1479,7 @@ Mocha.prototype.run = function(fn) {
1518
1479
  };
1519
1480
 
1520
1481
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},"/lib")
1521
- },{"./context":7,"./hook":8,"./interfaces":12,"./reporters":23,"./runnable":36,"./runner":37,"./suite":38,"./test":39,"./utils":40,"_process":52,"escape-string-regexp":69,"growl":70,"path":42}],16:[function(require,module,exports){
1482
+ },{"./context":6,"./hook":7,"./interfaces":11,"./reporters":22,"./runnable":35,"./runner":36,"./suite":37,"./test":38,"./utils":39,"_process":51,"escape-string-regexp":68,"growl":69,"path":41}],15:[function(require,module,exports){
1522
1483
  /**
1523
1484
  * Helpers.
1524
1485
  */
@@ -1648,7 +1609,7 @@ function plural(ms, n, name) {
1648
1609
  return Math.ceil(ms / n) + ' ' + name + 's';
1649
1610
  }
1650
1611
 
1651
- },{}],17:[function(require,module,exports){
1612
+ },{}],16:[function(require,module,exports){
1652
1613
 
1653
1614
  /**
1654
1615
  * Expose `Pending`.
@@ -1665,7 +1626,7 @@ function Pending(message) {
1665
1626
  this.message = message;
1666
1627
  }
1667
1628
 
1668
- },{}],18:[function(require,module,exports){
1629
+ },{}],17:[function(require,module,exports){
1669
1630
  (function (process,global){
1670
1631
  /**
1671
1632
  * Module dependencies.
@@ -1676,8 +1637,6 @@ var diff = require('diff');
1676
1637
  var ms = require('../ms');
1677
1638
  var utils = require('../utils');
1678
1639
  var supportsColor = process.browser ? null : require('supports-color');
1679
- var chalk = require('chalk');
1680
- chalk.enabled = supportsColor;
1681
1640
 
1682
1641
  /**
1683
1642
  * Expose `Base`.
@@ -1721,25 +1680,25 @@ exports.inlineDiffs = false;
1721
1680
  */
1722
1681
 
1723
1682
  exports.colors = {
1724
- pass: chalk.gray,
1725
- fail: chalk.red,
1726
- 'bright pass': chalk.green.bold,
1727
- 'bright fail': chalk.red.bold,
1728
- 'bright yellow': chalk.yellow.bold,
1729
- pending: chalk.cyan,
1730
- suite: chalk.white,
1731
- 'error title': chalk.gray,
1732
- 'error message': chalk.red,
1733
- 'error stack': chalk.white,
1734
- checkmark: chalk.green,
1735
- fast: chalk.gray,
1736
- medium: chalk.yellow,
1737
- slow: chalk.red,
1738
- green: chalk.green,
1739
- light: chalk.white.bold,
1740
- 'diff gutter': chalk.gray,
1741
- 'diff added': chalk.green,
1742
- 'diff removed': chalk.red
1683
+ pass: 90,
1684
+ fail: 31,
1685
+ 'bright pass': 92,
1686
+ 'bright fail': 91,
1687
+ 'bright yellow': 93,
1688
+ pending: 36,
1689
+ suite: 0,
1690
+ 'error title': 0,
1691
+ 'error message': 31,
1692
+ 'error stack': 90,
1693
+ checkmark: 32,
1694
+ fast: 90,
1695
+ medium: 33,
1696
+ slow: 31,
1697
+ green: 32,
1698
+ light: 90,
1699
+ 'diff gutter': 90,
1700
+ 'diff added': 32,
1701
+ 'diff removed': 31
1743
1702
  };
1744
1703
 
1745
1704
  /**
@@ -1774,7 +1733,7 @@ var color = exports.color = function(type, str) {
1774
1733
  if (!exports.useColors) {
1775
1734
  return String(str);
1776
1735
  }
1777
- return exports.colors[type](str);
1736
+ return '\u001b[' + exports.colors[type] + 'm' + str + '\u001b[0m';
1778
1737
  };
1779
1738
 
1780
1739
  /**
@@ -2158,7 +2117,7 @@ function sameType(a, b) {
2158
2117
  }
2159
2118
 
2160
2119
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
2161
- },{"../ms":16,"../utils":40,"_process":52,"chalk":2,"diff":68,"supports-color":42,"tty":6}],19:[function(require,module,exports){
2120
+ },{"../ms":15,"../utils":39,"_process":51,"diff":67,"supports-color":41,"tty":5}],18:[function(require,module,exports){
2162
2121
  /**
2163
2122
  * Module dependencies.
2164
2123
  */
@@ -2222,7 +2181,7 @@ function Doc(runner) {
2222
2181
  });
2223
2182
  }
2224
2183
 
2225
- },{"../utils":40,"./base":18}],20:[function(require,module,exports){
2184
+ },{"../utils":39,"./base":17}],19:[function(require,module,exports){
2226
2185
  (function (process){
2227
2186
  /**
2228
2187
  * Module dependencies.
@@ -2292,7 +2251,7 @@ function Dot(runner) {
2292
2251
  inherits(Dot, Base);
2293
2252
 
2294
2253
  }).call(this,require('_process'))
2295
- },{"../utils":40,"./base":18,"_process":52}],21:[function(require,module,exports){
2254
+ },{"../utils":39,"./base":17,"_process":51}],20:[function(require,module,exports){
2296
2255
  (function (process,__dirname){
2297
2256
  /**
2298
2257
  * Module dependencies.
@@ -2352,7 +2311,7 @@ function coverageClass(coveragePctg) {
2352
2311
  }
2353
2312
 
2354
2313
  }).call(this,require('_process'),"/lib/reporters")
2355
- },{"./json-cov":24,"_process":52,"fs":42,"jade":42,"path":42}],22:[function(require,module,exports){
2314
+ },{"./json-cov":23,"_process":51,"fs":41,"jade":41,"path":41}],21:[function(require,module,exports){
2356
2315
  (function (global){
2357
2316
  /* eslint-env browser */
2358
2317
 
@@ -2685,7 +2644,7 @@ function on(el, event, fn) {
2685
2644
  }
2686
2645
 
2687
2646
  }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
2688
- },{"../browser/progress":5,"../utils":40,"./base":18,"escape-string-regexp":69}],23:[function(require,module,exports){
2647
+ },{"../browser/progress":4,"../utils":39,"./base":17,"escape-string-regexp":68}],22:[function(require,module,exports){
2689
2648
  // Alias exports to a their normalized format Mocha#reporter to prevent a need
2690
2649
  // for dynamic (try/catch) requires, which Browserify doesn't handle.
2691
2650
  exports.Base = exports.base = require('./base');
@@ -2706,7 +2665,7 @@ exports.JSONCov = exports['json-cov'] = require('./json-cov');
2706
2665
  exports.HTMLCov = exports['html-cov'] = require('./html-cov');
2707
2666
  exports.JSONStream = exports['json-stream'] = require('./json-stream');
2708
2667
 
2709
- },{"./base":18,"./doc":19,"./dot":20,"./html":22,"./html-cov":21,"./json":26,"./json-cov":24,"./json-stream":25,"./landing":27,"./list":28,"./markdown":29,"./min":30,"./nyan":31,"./progress":32,"./spec":33,"./tap":34,"./xunit":35}],24:[function(require,module,exports){
2668
+ },{"./base":17,"./doc":18,"./dot":19,"./html":21,"./html-cov":20,"./json":25,"./json-cov":23,"./json-stream":24,"./landing":26,"./list":27,"./markdown":28,"./min":29,"./nyan":30,"./progress":31,"./spec":32,"./tap":33,"./xunit":34}],23:[function(require,module,exports){
2710
2669
  (function (process,global){
2711
2670
  /**
2712
2671
  * Module dependencies.
@@ -2861,7 +2820,7 @@ function clean(test) {
2861
2820
  }
2862
2821
 
2863
2822
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
2864
- },{"./base":18,"_process":52}],25:[function(require,module,exports){
2823
+ },{"./base":17,"_process":51}],24:[function(require,module,exports){
2865
2824
  (function (process){
2866
2825
  /**
2867
2826
  * Module dependencies.
@@ -2925,7 +2884,7 @@ function clean(test) {
2925
2884
  }
2926
2885
 
2927
2886
  }).call(this,require('_process'))
2928
- },{"./base":18,"_process":52}],26:[function(require,module,exports){
2887
+ },{"./base":17,"_process":51}],25:[function(require,module,exports){
2929
2888
  (function (process){
2930
2889
  /**
2931
2890
  * Module dependencies.
@@ -3019,7 +2978,7 @@ function errorJSON(err) {
3019
2978
  }
3020
2979
 
3021
2980
  }).call(this,require('_process'))
3022
- },{"./base":18,"_process":52}],27:[function(require,module,exports){
2981
+ },{"./base":17,"_process":51}],26:[function(require,module,exports){
3023
2982
  (function (process){
3024
2983
  /**
3025
2984
  * Module dependencies.
@@ -3029,7 +2988,6 @@ var Base = require('./base');
3029
2988
  var inherits = require('../utils').inherits;
3030
2989
  var cursor = Base.cursor;
3031
2990
  var color = Base.color;
3032
- var chalk = require('chalk');
3033
2991
 
3034
2992
  /**
3035
2993
  * Expose `Landing`.
@@ -3041,19 +2999,19 @@ exports = module.exports = Landing;
3041
2999
  * Airplane color.
3042
3000
  */
3043
3001
 
3044
- Base.colors.plane = chalk.white;
3002
+ Base.colors.plane = 0;
3045
3003
 
3046
3004
  /**
3047
3005
  * Airplane crash color.
3048
3006
  */
3049
3007
 
3050
- Base.colors['plane crash'] = chalk.red;
3008
+ Base.colors['plane crash'] = 31;
3051
3009
 
3052
3010
  /**
3053
3011
  * Runway color.
3054
3012
  */
3055
3013
 
3056
- Base.colors.runway = chalk.gray;
3014
+ Base.colors.runway = 90;
3057
3015
 
3058
3016
  /**
3059
3017
  * Initialize a new `Landing` reporter.
@@ -3116,7 +3074,7 @@ function Landing(runner) {
3116
3074
  inherits(Landing, Base);
3117
3075
 
3118
3076
  }).call(this,require('_process'))
3119
- },{"../utils":40,"./base":18,"_process":52,"chalk":2}],28:[function(require,module,exports){
3077
+ },{"../utils":39,"./base":17,"_process":51}],27:[function(require,module,exports){
3120
3078
  (function (process){
3121
3079
  /**
3122
3080
  * Module dependencies.
@@ -3181,7 +3139,7 @@ function List(runner) {
3181
3139
  inherits(List, Base);
3182
3140
 
3183
3141
  }).call(this,require('_process'))
3184
- },{"../utils":40,"./base":18,"_process":52}],29:[function(require,module,exports){
3142
+ },{"../utils":39,"./base":17,"_process":51}],28:[function(require,module,exports){
3185
3143
  (function (process){
3186
3144
  /**
3187
3145
  * Module dependencies.
@@ -3282,7 +3240,7 @@ function Markdown(runner) {
3282
3240
  }
3283
3241
 
3284
3242
  }).call(this,require('_process'))
3285
- },{"../utils":40,"./base":18,"_process":52}],30:[function(require,module,exports){
3243
+ },{"../utils":39,"./base":17,"_process":51}],29:[function(require,module,exports){
3286
3244
  (function (process){
3287
3245
  /**
3288
3246
  * Module dependencies.
@@ -3322,7 +3280,7 @@ function Min(runner) {
3322
3280
  inherits(Min, Base);
3323
3281
 
3324
3282
  }).call(this,require('_process'))
3325
- },{"../utils":40,"./base":18,"_process":52}],31:[function(require,module,exports){
3283
+ },{"../utils":39,"./base":17,"_process":51}],30:[function(require,module,exports){
3326
3284
  (function (process){
3327
3285
  /**
3328
3286
  * Module dependencies.
@@ -3587,7 +3545,7 @@ function write(string) {
3587
3545
  }
3588
3546
 
3589
3547
  }).call(this,require('_process'))
3590
- },{"../utils":40,"./base":18,"_process":52}],32:[function(require,module,exports){
3548
+ },{"../utils":39,"./base":17,"_process":51}],31:[function(require,module,exports){
3591
3549
  (function (process){
3592
3550
  /**
3593
3551
  * Module dependencies.
@@ -3597,7 +3555,6 @@ var Base = require('./base');
3597
3555
  var inherits = require('../utils').inherits;
3598
3556
  var color = Base.color;
3599
3557
  var cursor = Base.cursor;
3600
- var chalk = require('chalk');
3601
3558
 
3602
3559
  /**
3603
3560
  * Expose `Progress`.
@@ -3609,7 +3566,7 @@ exports = module.exports = Progress;
3609
3566
  * General progress bar color.
3610
3567
  */
3611
3568
 
3612
- Base.colors.progress = chalk.gray;
3569
+ Base.colors.progress = 90;
3613
3570
 
3614
3571
  /**
3615
3572
  * Initialize a new `Progress` bar test reporter.
@@ -3681,7 +3638,7 @@ function Progress(runner, options) {
3681
3638
  inherits(Progress, Base);
3682
3639
 
3683
3640
  }).call(this,require('_process'))
3684
- },{"../utils":40,"./base":18,"_process":52,"chalk":2}],33:[function(require,module,exports){
3641
+ },{"../utils":39,"./base":17,"_process":51}],32:[function(require,module,exports){
3685
3642
  /**
3686
3643
  * Module dependencies.
3687
3644
  */
@@ -3766,7 +3723,7 @@ function Spec(runner) {
3766
3723
  */
3767
3724
  inherits(Spec, Base);
3768
3725
 
3769
- },{"../utils":40,"./base":18}],34:[function(require,module,exports){
3726
+ },{"../utils":39,"./base":17}],33:[function(require,module,exports){
3770
3727
  /**
3771
3728
  * Module dependencies.
3772
3729
  */
@@ -3836,7 +3793,7 @@ function title(test) {
3836
3793
  return test.fullTitle().replace(/#/g, '');
3837
3794
  }
3838
3795
 
3839
- },{"./base":18}],35:[function(require,module,exports){
3796
+ },{"./base":17}],34:[function(require,module,exports){
3840
3797
  (function (process,global){
3841
3798
  /**
3842
3799
  * Module dependencies.
@@ -4014,7 +3971,7 @@ function cdata(str) {
4014
3971
  }
4015
3972
 
4016
3973
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
4017
- },{"../utils":40,"./base":18,"_process":52,"fs":42,"mkdirp":71,"path":42}],36:[function(require,module,exports){
3974
+ },{"../utils":39,"./base":17,"_process":51,"fs":41,"mkdirp":70,"path":41}],35:[function(require,module,exports){
4018
3975
  (function (global){
4019
3976
  /**
4020
3977
  * Module dependencies.
@@ -4370,7 +4327,7 @@ Runnable.prototype.run = function(fn) {
4370
4327
  };
4371
4328
 
4372
4329
  }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
4373
- },{"./ms":16,"./pending":17,"./utils":40,"debug":3,"events":4}],37:[function(require,module,exports){
4330
+ },{"./ms":15,"./pending":16,"./utils":39,"debug":2,"events":3}],36:[function(require,module,exports){
4374
4331
  (function (process,global){
4375
4332
  /**
4376
4333
  * Module dependencies.
@@ -5273,7 +5230,7 @@ function extraGlobals() {
5273
5230
  }
5274
5231
 
5275
5232
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
5276
- },{"./pending":17,"./runnable":36,"./utils":40,"_process":52,"debug":3,"events":4}],38:[function(require,module,exports){
5233
+ },{"./pending":16,"./runnable":35,"./utils":39,"_process":51,"debug":2,"events":3}],37:[function(require,module,exports){
5277
5234
  /**
5278
5235
  * Module dependencies.
5279
5236
  */
@@ -5664,7 +5621,7 @@ Suite.prototype.run = function run() {
5664
5621
  }
5665
5622
  };
5666
5623
 
5667
- },{"./hook":8,"./ms":16,"./utils":40,"debug":3,"events":4}],39:[function(require,module,exports){
5624
+ },{"./hook":7,"./ms":15,"./utils":39,"debug":2,"events":3}],38:[function(require,module,exports){
5668
5625
  /**
5669
5626
  * Module dependencies.
5670
5627
  */
@@ -5711,7 +5668,7 @@ Test.prototype.clone = function() {
5711
5668
  return test;
5712
5669
  };
5713
5670
 
5714
- },{"./runnable":36,"./utils":40}],40:[function(require,module,exports){
5671
+ },{"./runnable":35,"./utils":39}],39:[function(require,module,exports){
5715
5672
  (function (process,Buffer){
5716
5673
  /* eslint-env browser */
5717
5674
 
@@ -6455,7 +6412,7 @@ exports.stackTraceFilter = function() {
6455
6412
  };
6456
6413
 
6457
6414
  }).call(this,require('_process'),require("buffer").Buffer)
6458
- },{"_process":52,"buffer":44,"debug":3,"fs":42,"glob":42,"path":42,"util":67}],41:[function(require,module,exports){
6415
+ },{"_process":51,"buffer":43,"debug":2,"fs":41,"glob":41,"path":41,"util":66}],40:[function(require,module,exports){
6459
6416
  (function (process){
6460
6417
  var WritableStream = require('stream').Writable
6461
6418
  var inherits = require('util').inherits
@@ -6484,11 +6441,11 @@ BrowserStdout.prototype._write = function(chunks, encoding, cb) {
6484
6441
  }
6485
6442
 
6486
6443
  }).call(this,require('_process'))
6487
- },{"_process":52,"stream":64,"util":67}],42:[function(require,module,exports){
6444
+ },{"_process":51,"stream":63,"util":66}],41:[function(require,module,exports){
6488
6445
 
6489
- },{}],43:[function(require,module,exports){
6490
- arguments[4][42][0].apply(exports,arguments)
6491
- },{"dup":42}],44:[function(require,module,exports){
6446
+ },{}],42:[function(require,module,exports){
6447
+ arguments[4][41][0].apply(exports,arguments)
6448
+ },{"dup":41}],43:[function(require,module,exports){
6492
6449
  /*!
6493
6450
  * The buffer module from node.js, for the browser.
6494
6451
  *
@@ -8023,7 +7980,7 @@ function blitBuffer (src, dst, offset, length) {
8023
7980
  return i
8024
7981
  }
8025
7982
 
8026
- },{"base64-js":45,"ieee754":46,"is-array":47}],45:[function(require,module,exports){
7983
+ },{"base64-js":44,"ieee754":45,"is-array":46}],44:[function(require,module,exports){
8027
7984
  var lookup = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
8028
7985
 
8029
7986
  ;(function (exports) {
@@ -8149,7 +8106,7 @@ var lookup = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
8149
8106
  exports.fromByteArray = uint8ToBase64
8150
8107
  }(typeof exports === 'undefined' ? (this.base64js = {}) : exports))
8151
8108
 
8152
- },{}],46:[function(require,module,exports){
8109
+ },{}],45:[function(require,module,exports){
8153
8110
  exports.read = function (buffer, offset, isLE, mLen, nBytes) {
8154
8111
  var e, m
8155
8112
  var eLen = nBytes * 8 - mLen - 1
@@ -8235,7 +8192,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
8235
8192
  buffer[offset + i - d] |= s * 128
8236
8193
  }
8237
8194
 
8238
- },{}],47:[function(require,module,exports){
8195
+ },{}],46:[function(require,module,exports){
8239
8196
 
8240
8197
  /**
8241
8198
  * isArray
@@ -8270,7 +8227,7 @@ module.exports = isArray || function (val) {
8270
8227
  return !! val && '[object Array]' == str.call(val);
8271
8228
  };
8272
8229
 
8273
- },{}],48:[function(require,module,exports){
8230
+ },{}],47:[function(require,module,exports){
8274
8231
  // Copyright Joyent, Inc. and other Node contributors.
8275
8232
  //
8276
8233
  // Permission is hereby granted, free of charge, to any person obtaining a
@@ -8573,7 +8530,7 @@ function isUndefined(arg) {
8573
8530
  return arg === void 0;
8574
8531
  }
8575
8532
 
8576
- },{}],49:[function(require,module,exports){
8533
+ },{}],48:[function(require,module,exports){
8577
8534
  if (typeof Object.create === 'function') {
8578
8535
  // implementation from standard node.js 'util' module
8579
8536
  module.exports = function inherits(ctor, superCtor) {
@@ -8598,12 +8555,12 @@ if (typeof Object.create === 'function') {
8598
8555
  }
8599
8556
  }
8600
8557
 
8601
- },{}],50:[function(require,module,exports){
8558
+ },{}],49:[function(require,module,exports){
8602
8559
  module.exports = Array.isArray || function (arr) {
8603
8560
  return Object.prototype.toString.call(arr) == '[object Array]';
8604
8561
  };
8605
8562
 
8606
- },{}],51:[function(require,module,exports){
8563
+ },{}],50:[function(require,module,exports){
8607
8564
  exports.endianness = function () { return 'LE' };
8608
8565
 
8609
8566
  exports.hostname = function () {
@@ -8650,7 +8607,7 @@ exports.tmpdir = exports.tmpDir = function () {
8650
8607
 
8651
8608
  exports.EOL = '\n';
8652
8609
 
8653
- },{}],52:[function(require,module,exports){
8610
+ },{}],51:[function(require,module,exports){
8654
8611
  // shim for using process in browser
8655
8612
 
8656
8613
  var process = module.exports = {};
@@ -8743,10 +8700,10 @@ process.chdir = function (dir) {
8743
8700
  };
8744
8701
  process.umask = function() { return 0; };
8745
8702
 
8746
- },{}],53:[function(require,module,exports){
8703
+ },{}],52:[function(require,module,exports){
8747
8704
  module.exports = require("./lib/_stream_duplex.js")
8748
8705
 
8749
- },{"./lib/_stream_duplex.js":54}],54:[function(require,module,exports){
8706
+ },{"./lib/_stream_duplex.js":53}],53:[function(require,module,exports){
8750
8707
  (function (process){
8751
8708
  // Copyright Joyent, Inc. and other Node contributors.
8752
8709
  //
@@ -8839,7 +8796,7 @@ function forEach (xs, f) {
8839
8796
  }
8840
8797
 
8841
8798
  }).call(this,require('_process'))
8842
- },{"./_stream_readable":56,"./_stream_writable":58,"_process":52,"core-util-is":59,"inherits":49}],55:[function(require,module,exports){
8799
+ },{"./_stream_readable":55,"./_stream_writable":57,"_process":51,"core-util-is":58,"inherits":48}],54:[function(require,module,exports){
8843
8800
  // Copyright Joyent, Inc. and other Node contributors.
8844
8801
  //
8845
8802
  // Permission is hereby granted, free of charge, to any person obtaining a
@@ -8887,7 +8844,7 @@ PassThrough.prototype._transform = function(chunk, encoding, cb) {
8887
8844
  cb(null, chunk);
8888
8845
  };
8889
8846
 
8890
- },{"./_stream_transform":57,"core-util-is":59,"inherits":49}],56:[function(require,module,exports){
8847
+ },{"./_stream_transform":56,"core-util-is":58,"inherits":48}],55:[function(require,module,exports){
8891
8848
  (function (process){
8892
8849
  // Copyright Joyent, Inc. and other Node contributors.
8893
8850
  //
@@ -9842,7 +9799,7 @@ function indexOf (xs, x) {
9842
9799
  }
9843
9800
 
9844
9801
  }).call(this,require('_process'))
9845
- },{"./_stream_duplex":54,"_process":52,"buffer":44,"core-util-is":59,"events":48,"inherits":49,"isarray":50,"stream":64,"string_decoder/":65,"util":43}],57:[function(require,module,exports){
9802
+ },{"./_stream_duplex":53,"_process":51,"buffer":43,"core-util-is":58,"events":47,"inherits":48,"isarray":49,"stream":63,"string_decoder/":64,"util":42}],56:[function(require,module,exports){
9846
9803
  // Copyright Joyent, Inc. and other Node contributors.
9847
9804
  //
9848
9805
  // Permission is hereby granted, free of charge, to any person obtaining a
@@ -10053,7 +10010,7 @@ function done(stream, er) {
10053
10010
  return stream.push(null);
10054
10011
  }
10055
10012
 
10056
- },{"./_stream_duplex":54,"core-util-is":59,"inherits":49}],58:[function(require,module,exports){
10013
+ },{"./_stream_duplex":53,"core-util-is":58,"inherits":48}],57:[function(require,module,exports){
10057
10014
  (function (process){
10058
10015
  // Copyright Joyent, Inc. and other Node contributors.
10059
10016
  //
@@ -10534,7 +10491,7 @@ function endWritable(stream, state, cb) {
10534
10491
  }
10535
10492
 
10536
10493
  }).call(this,require('_process'))
10537
- },{"./_stream_duplex":54,"_process":52,"buffer":44,"core-util-is":59,"inherits":49,"stream":64}],59:[function(require,module,exports){
10494
+ },{"./_stream_duplex":53,"_process":51,"buffer":43,"core-util-is":58,"inherits":48,"stream":63}],58:[function(require,module,exports){
10538
10495
  (function (Buffer){
10539
10496
  // Copyright Joyent, Inc. and other Node contributors.
10540
10497
  //
@@ -10644,10 +10601,10 @@ function objectToString(o) {
10644
10601
  return Object.prototype.toString.call(o);
10645
10602
  }
10646
10603
  }).call(this,require("buffer").Buffer)
10647
- },{"buffer":44}],60:[function(require,module,exports){
10604
+ },{"buffer":43}],59:[function(require,module,exports){
10648
10605
  module.exports = require("./lib/_stream_passthrough.js")
10649
10606
 
10650
- },{"./lib/_stream_passthrough.js":55}],61:[function(require,module,exports){
10607
+ },{"./lib/_stream_passthrough.js":54}],60:[function(require,module,exports){
10651
10608
  exports = module.exports = require('./lib/_stream_readable.js');
10652
10609
  exports.Stream = require('stream');
10653
10610
  exports.Readable = exports;
@@ -10656,13 +10613,13 @@ exports.Duplex = require('./lib/_stream_duplex.js');
10656
10613
  exports.Transform = require('./lib/_stream_transform.js');
10657
10614
  exports.PassThrough = require('./lib/_stream_passthrough.js');
10658
10615
 
10659
- },{"./lib/_stream_duplex.js":54,"./lib/_stream_passthrough.js":55,"./lib/_stream_readable.js":56,"./lib/_stream_transform.js":57,"./lib/_stream_writable.js":58,"stream":64}],62:[function(require,module,exports){
10616
+ },{"./lib/_stream_duplex.js":53,"./lib/_stream_passthrough.js":54,"./lib/_stream_readable.js":55,"./lib/_stream_transform.js":56,"./lib/_stream_writable.js":57,"stream":63}],61:[function(require,module,exports){
10660
10617
  module.exports = require("./lib/_stream_transform.js")
10661
10618
 
10662
- },{"./lib/_stream_transform.js":57}],63:[function(require,module,exports){
10619
+ },{"./lib/_stream_transform.js":56}],62:[function(require,module,exports){
10663
10620
  module.exports = require("./lib/_stream_writable.js")
10664
10621
 
10665
- },{"./lib/_stream_writable.js":58}],64:[function(require,module,exports){
10622
+ },{"./lib/_stream_writable.js":57}],63:[function(require,module,exports){
10666
10623
  // Copyright Joyent, Inc. and other Node contributors.
10667
10624
  //
10668
10625
  // Permission is hereby granted, free of charge, to any person obtaining a
@@ -10791,7 +10748,7 @@ Stream.prototype.pipe = function(dest, options) {
10791
10748
  return dest;
10792
10749
  };
10793
10750
 
10794
- },{"events":48,"inherits":49,"readable-stream/duplex.js":53,"readable-stream/passthrough.js":60,"readable-stream/readable.js":61,"readable-stream/transform.js":62,"readable-stream/writable.js":63}],65:[function(require,module,exports){
10751
+ },{"events":47,"inherits":48,"readable-stream/duplex.js":52,"readable-stream/passthrough.js":59,"readable-stream/readable.js":60,"readable-stream/transform.js":61,"readable-stream/writable.js":62}],64:[function(require,module,exports){
10795
10752
  // Copyright Joyent, Inc. and other Node contributors.
10796
10753
  //
10797
10754
  // Permission is hereby granted, free of charge, to any person obtaining a
@@ -11014,14 +10971,14 @@ function base64DetectIncompleteChar(buffer) {
11014
10971
  this.charLength = this.charReceived ? 3 : 0;
11015
10972
  }
11016
10973
 
11017
- },{"buffer":44}],66:[function(require,module,exports){
10974
+ },{"buffer":43}],65:[function(require,module,exports){
11018
10975
  module.exports = function isBuffer(arg) {
11019
10976
  return arg && typeof arg === 'object'
11020
10977
  && typeof arg.copy === 'function'
11021
10978
  && typeof arg.fill === 'function'
11022
10979
  && typeof arg.readUInt8 === 'function';
11023
10980
  }
11024
- },{}],67:[function(require,module,exports){
10981
+ },{}],66:[function(require,module,exports){
11025
10982
  (function (process,global){
11026
10983
  // Copyright Joyent, Inc. and other Node contributors.
11027
10984
  //
@@ -11611,7 +11568,7 @@ function hasOwnProperty(obj, prop) {
11611
11568
  }
11612
11569
 
11613
11570
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
11614
- },{"./support/isBuffer":66,"_process":52,"inherits":49}],68:[function(require,module,exports){
11571
+ },{"./support/isBuffer":65,"_process":51,"inherits":48}],67:[function(require,module,exports){
11615
11572
  /* See LICENSE file for terms of use */
11616
11573
 
11617
11574
  /*
@@ -12232,7 +12189,7 @@ function hasOwnProperty(obj, prop) {
12232
12189
  }
12233
12190
  }(this));
12234
12191
 
12235
- },{}],69:[function(require,module,exports){
12192
+ },{}],68:[function(require,module,exports){
12236
12193
  'use strict';
12237
12194
 
12238
12195
  var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g;
@@ -12245,7 +12202,7 @@ module.exports = function (str) {
12245
12202
  return str.replace(matchOperatorsRe, '\\$&');
12246
12203
  };
12247
12204
 
12248
- },{}],70:[function(require,module,exports){
12205
+ },{}],69:[function(require,module,exports){
12249
12206
  (function (process){
12250
12207
  // Growl - Copyright TJ Holowaychuk <tj@vision-media.ca> (MIT Licensed)
12251
12208
 
@@ -12483,7 +12440,7 @@ function growl(msg, options, fn) {
12483
12440
  };
12484
12441
 
12485
12442
  }).call(this,require('_process'))
12486
- },{"_process":52,"child_process":42,"fs":42,"os":51,"path":42}],71:[function(require,module,exports){
12443
+ },{"_process":51,"child_process":41,"fs":41,"os":50,"path":41}],70:[function(require,module,exports){
12487
12444
  (function (process){
12488
12445
  var path = require('path');
12489
12446
  var fs = require('fs');
@@ -12585,7 +12542,7 @@ mkdirP.sync = function sync (p, opts, made) {
12585
12542
  };
12586
12543
 
12587
12544
  }).call(this,require('_process'))
12588
- },{"_process":52,"fs":42,"path":42}],72:[function(require,module,exports){
12545
+ },{"_process":51,"fs":41,"path":41}],71:[function(require,module,exports){
12589
12546
  (function (process,global){
12590
12547
  /**
12591
12548
  * Shim process.stdout.
@@ -12750,4 +12707,4 @@ global.Mocha = Mocha;
12750
12707
  global.mocha = mocha;
12751
12708
 
12752
12709
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
12753
- },{"../":1,"_process":52,"browser-stdout":41}]},{},[72]);
12710
+ },{"../":1,"_process":51,"browser-stdout":40}]},{},[71]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mocha",
3
- "version": "2.4.4",
3
+ "version": "2.4.5",
4
4
  "description": "simple, flexible, fun test framework",
5
5
  "keywords": [
6
6
  "mocha",
@@ -274,7 +274,6 @@
274
274
  "test": "make test-all"
275
275
  },
276
276
  "dependencies": {
277
- "chalk": "0.4.0",
278
277
  "commander": "2.3.0",
279
278
  "debug": "2.2.0",
280
279
  "diff": "1.4.0",
@@ -305,8 +304,7 @@
305
304
  "browser": {
306
305
  "debug": "./lib/browser/debug.js",
307
306
  "events": "./lib/browser/events.js",
308
- "tty": "./lib/browser/tty.js",
309
- "chalk": "./lib/browser/chalk.js"
307
+ "tty": "./lib/browser/tty.js"
310
308
  },
311
309
  "licenses": [
312
310
  {
@@ -1,37 +0,0 @@
1
- 'use strict';
2
-
3
- // nasty stub
4
-
5
- var chalk = {};
6
- var colors = [
7
- 'reset',
8
- 'bold',
9
- 'italic',
10
- 'underline',
11
- 'inverse',
12
- 'strikethrough',
13
- 'black',
14
- 'red',
15
- 'green',
16
- 'yellow',
17
- 'blue',
18
- 'magenta',
19
- 'cyan',
20
- 'white',
21
- 'gray',
22
- 'bgBlack',
23
- 'bgRed',
24
- 'bgGreen',
25
- 'bgYellow',
26
- 'bgBlue',
27
- 'bgMagenta',
28
- 'bgCyan',
29
- 'bgWhite'
30
- ];
31
-
32
- var i = colors.length;
33
- while (i--) {
34
- chalk[colors[i]] = chalk;
35
- }
36
-
37
- module.exports = chalk;