mocha 1.7.3 → 1.8.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/History.md CHANGED
@@ -1,16 +1,45 @@
1
1
 
2
- 1.7.3 / 2012-11-30
2
+ 1.8.2 / 2013-03-11
3
+ ==================
4
+
5
+ * add `setImmediate` support for 0.10.x
6
+ * fix mocha -w spinner on windows
7
+
8
+ 1.8.1 / 2013-01-09
9
+ ==================
10
+
11
+ * fix .bail() arity check causing it to default to true
12
+
13
+ 1.8.0 / 2013-01-08
14
+ ==================
15
+
16
+ * add Mocha() options bail support
17
+ * add `Mocha#bail()` method
18
+ * add instanceof check back for inheriting from Error
19
+ * add component.json
20
+ * add diff.js to browser build
21
+ * update growl
22
+ * fix TAP reporter failures comment :D
23
+
24
+ 1.7.4 / 2012-12-06
25
+ ==================
26
+
27
+ * add total number of passes and failures to TAP
28
+ * remove .bind() calls. re #680
29
+ * fix indexOf. Closes #680
30
+
31
+ 1.7.3 / 2012-11-30
3
32
  ==================
4
33
 
5
34
  * fix uncaught error support for the browser
6
35
  * revert uncaught "fix" which breaks node
7
36
 
8
- 1.7.2 / 2012-11-28
37
+ 1.7.2 / 2012-11-28
9
38
  ==================
10
39
 
11
- * fix uncaught errors to expose the original error message
40
+ * fix uncaught errors to expose the original error message
12
41
 
13
- 1.7.0 / 2012-11-07
42
+ 1.7.0 / 2012-11-07
14
43
  ==================
15
44
 
16
45
  * add `--async-only` support to prevent false positives for missing `done()`
@@ -25,14 +54,14 @@
25
54
  * fix markdown reporter a tags
26
55
  * fix `this.timeout("5s")` support
27
56
 
28
- 1.6.0 / 2012-10-02
57
+ 1.6.0 / 2012-10-02
29
58
  ==================
30
59
 
31
60
  * add object diffs when `err.showDiff` is present
32
61
  * add hiding of empty suites when pass/failures are toggled
33
62
  * add faster `.length` checks to `checkGlobals()` before performing the filter
34
63
 
35
- 1.5.0 / 2012-09-21
64
+ 1.5.0 / 2012-09-21
36
65
  ==================
37
66
 
38
67
  * add `ms()` to `.slow()` and `.timeout()`
@@ -46,7 +75,7 @@
46
75
  * fix relaying of signals [TooTallNate]
47
76
  * fix TAP reporter grep number
48
77
 
49
- 1.4.2 / 2012-09-01
78
+ 1.4.2 / 2012-09-01
50
79
  ==================
51
80
 
52
81
  * add support to multiple `Mocha#globals()` calls, and strings
@@ -58,14 +87,14 @@
58
87
  * fix client-side API to match node-side [jfirebaugh]
59
88
  * fix mocha in iframe [joliss]
60
89
 
61
- 1.4.1 / 2012-08-28
90
+ 1.4.1 / 2012-08-28
62
91
  ==================
63
92
 
64
93
  * add missing `Markdown` export
65
94
  * fix `Mocha#grep()`, escape regexp strings
66
95
  * fix reference error when `devicePixelRatio` is not defined. Closes #549
67
96
 
68
- 1.4.0 / 2012-08-22
97
+ 1.4.0 / 2012-08-22
69
98
  ==================
70
99
 
71
100
  * add mkdir -p to `mocha init`. Closes #539
@@ -75,12 +104,12 @@
75
104
  * fix HTML progress indicator retina display
76
105
  * fix url-encoding of click-to-grep HTML functionality
77
106
 
78
- 1.3.2 / 2012-08-01
107
+ 1.3.2 / 2012-08-01
79
108
  ==================
80
109
 
81
110
  * fix exports double-execution regression. Closes #531
82
111
 
83
- 1.3.1 / 2012-08-01
112
+ 1.3.1 / 2012-08-01
84
113
  ==================
85
114
 
86
115
  * add passes/failures toggling to HTML reporter
@@ -96,7 +125,7 @@
96
125
  * fix error when clicking pending test in HTML reporter
97
126
  * fix `make tm`
98
127
 
99
- 1.3.0 / 2012-07-05
128
+ 1.3.0 / 2012-07-05
100
129
  ==================
101
130
 
102
131
  * add window scrolling to `HTML` reporter
@@ -108,12 +137,12 @@
108
137
  * fix `done()` called multiple times with an error test
109
138
  * change `--grep` - regexp escape the input
110
139
 
111
- 1.2.2 / 2012-06-28
140
+ 1.2.2 / 2012-06-28
112
141
  ==================
113
142
 
114
143
  * Added 0.8.0 support
115
144
 
116
- 1.2.1 / 2012-06-25
145
+ 1.2.1 / 2012-06-25
117
146
  ==================
118
147
 
119
148
  * Added `this.test.error(err)` support to after each hooks. Closes #287
@@ -124,7 +153,7 @@
124
153
  * Fixed chars in nyan when his head moves back
125
154
  * Remove `--growl` from test/mocha.opts. Closes #289
126
155
 
127
- 1.2.0 / 2012-06-17
156
+ 1.2.0 / 2012-06-17
128
157
  ==================
129
158
 
130
159
  * Added `nyan` reporter [Atsuya Takagi]
@@ -134,7 +163,7 @@
134
163
  * Fixed runner emitter leak. closes #432
135
164
  * Fixed omission of .js extension. Closes #454
136
165
 
137
- 1.1.0 / 2012-05-30
166
+ 1.1.0 / 2012-05-30
138
167
  ==================
139
168
 
140
169
  * Added: check each `mocha(1)` arg for directories to walk
@@ -148,13 +177,13 @@
148
177
  * Fixed issue #325 - add better grep support to js api
149
178
  * Fixed: save timer references to avoid Sinon interfering.
150
179
 
151
- 1.0.3 / 2012-04-30
180
+ 1.0.3 / 2012-04-30
152
181
  ==================
153
182
 
154
183
  * Fixed string diff newlines
155
184
  * Fixed: removed mocha.css target. Closes #401
156
185
 
157
- 1.0.2 / 2012-04-25
186
+ 1.0.2 / 2012-04-25
158
187
  ==================
159
188
 
160
189
  * Added HTML reporter duration. Closes #47
@@ -165,14 +194,14 @@
165
194
  * Fixed #166 - When grepping don't display the empty suites
166
195
  * Removed test/browser/style.css. Closes #385
167
196
 
168
- 1.0.1 / 2012-04-04
197
+ 1.0.1 / 2012-04-04
169
198
  ==================
170
199
 
171
200
  * Fixed `.timeout()` in hooks
172
201
  * Fixed: allow callback for `mocha.run()` in client version
173
202
  * Fixed browser hook error display. Closes #361
174
203
 
175
- 1.0.0 / 2012-03-24
204
+ 1.0.0 / 2012-03-24
176
205
  ==================
177
206
 
178
207
  * Added js API. Closes #265
@@ -187,7 +216,7 @@
187
216
  * Fixed chopping of first char in error reporting. Closes #334 [reported by topfunky]
188
217
  * Fixed terrible FF / Opera stack traces
189
218
 
190
- 0.14.1 / 2012-03-06
219
+ 0.14.1 / 2012-03-06
191
220
  ==================
192
221
 
193
222
  * Added lib-cov to _.npmignore_
@@ -196,30 +225,30 @@
196
225
  * Removed jQuery dependency
197
226
  * Fixed `--watch`: purge require cache. Closes #266
198
227
 
199
- 0.14.0 / 2012-03-01
228
+ 0.14.0 / 2012-03-01
200
229
  ==================
201
230
 
202
231
  * Added string diff support for terminal reporters
203
232
 
204
- 0.13.0 / 2012-02-23
233
+ 0.13.0 / 2012-02-23
205
234
  ==================
206
235
 
207
236
  * Added preliminary test coverage support. Closes #5
208
237
  * Added `HTMLCov` reporter
209
238
  * Added `JSONCov` reporter [kunklejr]
210
239
  * Added `xdescribe()` and `xit()` to the BDD interface. Closes #263 (docs * Changed: make json reporter output pretty json
211
- * Fixed node-inspector support, swapped `--debug` for `debug` to match node.
240
+ * Fixed node-inspector support, swapped `--debug` for `debug` to match node.
212
241
  needed)
213
242
  Closes #247
214
243
 
215
- 0.12.1 / 2012-02-14
244
+ 0.12.1 / 2012-02-14
216
245
  ==================
217
246
 
218
247
  * Added `npm docs mocha` support [TooTallNate]
219
248
  * Added a `Context` object used for hook and test-case this. Closes #253
220
249
  * Fixed `Suite#clone()` `.ctx` reference. Closes #262
221
250
 
222
- 0.12.0 / 2012-02-02
251
+ 0.12.0 / 2012-02-02
223
252
  ==================
224
253
 
225
254
  * Added .coffee `--watch` support. Closes #242
@@ -228,14 +257,14 @@ Closes #247
228
257
  * Changed: made HTML progress indicator smaller
229
258
  * Fixed xunit errors attribute [dhendo]
230
259
 
231
- 0.10.2 / 2012-01-21
260
+ 0.10.2 / 2012-01-21
232
261
  ==================
233
262
 
234
263
  * Fixed suite count in reporter stats. Closes #222
235
264
  * Fixed `done()` after timeout error reporting [Phil Sung]
236
265
  * Changed the 0-based errors to 1
237
266
 
238
- 0.10.1 / 2012-01-17
267
+ 0.10.1 / 2012-01-17
239
268
  ==================
240
269
 
241
270
  * Added support for node 0.7.x
@@ -243,7 +272,7 @@ Closes #247
243
272
  * Fixed `--no-colors` option [Jussi Virtanen]
244
273
  * Fixed Arial CSS typo in the correct file
245
274
 
246
- 0.10.0 / 2012-01-13
275
+ 0.10.0 / 2012-01-13
247
276
  ==================
248
277
 
249
278
  * Added `-b, --bail` to exit on first exception [guillermo]
@@ -254,21 +283,21 @@ Closes #247
254
283
  * Fixed `self.test` reference in runner. Closes #189
255
284
  * Fixed double reporting of uncaught exceptions after timeout. Closes #195
256
285
 
257
- 0.8.2 / 2012-01-05
286
+ 0.8.2 / 2012-01-05
258
287
  ==================
259
288
 
260
289
  * Added test-case context support. Closes #113
261
290
  * Fixed exit status. Closes #187
262
291
  * Update commander. Closes #190
263
292
 
264
- 0.8.1 / 2011-12-30
293
+ 0.8.1 / 2011-12-30
265
294
  ==================
266
295
 
267
296
  * Fixed reporting of uncaught exceptions. Closes #183
268
297
  * Fixed error message defaulting [indutny]
269
298
  * Changed mocha(1) from bash to node for windows [Nathan Rajlich]
270
299
 
271
- 0.8.0 / 2011-12-28
300
+ 0.8.0 / 2011-12-28
272
301
  ==================
273
302
 
274
303
  * Added `XUnit` reporter [FeeFighters/visionmedia]
@@ -279,7 +308,7 @@ Closes #247
279
308
  * Fixed mocha(1) --help bin name
280
309
  * Fixed `-d` for `--debug` support
281
310
 
282
- 0.7.1 / 2011-12-22
311
+ 0.7.1 / 2011-12-22
283
312
  ==================
284
313
 
285
314
  * Removed `mocha-debug(1)`, use `mocha --debug`
@@ -288,13 +317,13 @@ Closes #247
288
317
  * Fixed: platform specific line endings [TooTallNate]
289
318
  * Fixed: escape strings in HTML reporter. Closes #164
290
319
 
291
- 0.7.0 / 2011-12-18
320
+ 0.7.0 / 2011-12-18
292
321
  ==================
293
322
 
294
323
  * Added support for IE{7,8} [guille]
295
324
  * Changed: better browser nextTick implementation [guille]
296
325
 
297
- 0.6.0 / 2011-12-18
326
+ 0.6.0 / 2011-12-18
298
327
  ==================
299
328
 
300
329
  * Added setZeroTimeout timeout for browser (nicer stack traces). Closes #153
@@ -303,7 +332,7 @@ Closes #247
303
332
  * Fixed duplicate reporting for HTML reporter. Closes #154
304
333
  * Fixed silent hook errors in the HTML reporter. Closes #150
305
334
 
306
- 0.5.0 / 2011-12-14
335
+ 0.5.0 / 2011-12-14
307
336
  ==================
308
337
 
309
338
  * Added: push node_modules directory onto module.paths for relative require Closes #93
@@ -311,7 +340,7 @@ Closes #247
311
340
  * Fixed: recover from uncaught exceptions for tests. Closes #94
312
341
  * Fixed: only emit "test end" for uncaught within test, not hook
313
342
 
314
- 0.4.0 / 2011-12-14
343
+ 0.4.0 / 2011-12-14
315
344
  ==================
316
345
 
317
346
  * Added support for test-specific timeouts via `this.timeout(0)`. Closes #134
@@ -321,12 +350,12 @@ Closes #247
321
350
  * Fixed "suite" color for light terminals
322
351
  * Fixed `require()` leak spotted by [guillermo]
323
352
 
324
- 0.3.6 / 2011-12-09
353
+ 0.3.6 / 2011-12-09
325
354
  ==================
326
355
 
327
356
  * Removed suite merging (for now)
328
357
 
329
- 0.3.5 / 2011-12-08
358
+ 0.3.5 / 2011-12-08
330
359
  ==================
331
360
 
332
361
  * Added support for `window.onerror` [guillermo]
@@ -334,7 +363,7 @@ Closes #247
334
363
  * Added `mocha.css` to PHONY list.
335
364
  * Added `mocha.js` to PHONY list.
336
365
 
337
- 0.3.4 / 2011-12-08
366
+ 0.3.4 / 2011-12-08
338
367
  ==================
339
368
 
340
369
  * Added: allow `done()` to be called with non-Error
@@ -342,24 +371,24 @@ Closes #247
342
371
  * Fixed: run afterEach even on failures. Closes #125
343
372
  * Fixed clobbering of current runnable. Closes #121
344
373
 
345
- 0.3.3 / 2011-12-08
374
+ 0.3.3 / 2011-12-08
346
375
  ==================
347
376
 
348
377
  * Fixed hook timeouts. Closes #120
349
378
  * Fixed uncaught exceptions in hooks
350
379
 
351
- 0.3.2 / 2011-12-05
380
+ 0.3.2 / 2011-12-05
352
381
  ==================
353
382
 
354
383
  * Fixed weird reporting when `err.message` is not present
355
384
 
356
- 0.3.1 / 2011-12-04
385
+ 0.3.1 / 2011-12-04
357
386
  ==================
358
387
 
359
388
  * Fixed hook event emitter leak. Closes #117
360
389
  * Fixed: export `Spec` constructor. Closes #116
361
390
 
362
- 0.3.0 / 2011-12-04
391
+ 0.3.0 / 2011-12-04
363
392
  ==================
364
393
 
365
394
  * Added `-w, --watch`. Closes #72
@@ -369,7 +398,7 @@ Closes #247
369
398
  * Fixed `mocha-debug(1)` on some systems. Closes #232
370
399
  * Fixed growl total, use `runner.total`
371
400
 
372
- 0.2.0 / 2011-11-30
401
+ 0.2.0 / 2011-11-30
373
402
  ==================
374
403
 
375
404
  * Added `--globals <names>` to specify accepted globals. Closes #99
@@ -377,19 +406,19 @@ Closes #247
377
406
  * Fixed `mocha-debug(1)`. Closes #232
378
407
  * Fixed growl total, use runner.total
379
408
 
380
- 0.1.0 / 2011-11-29
409
+ 0.1.0 / 2011-11-29
381
410
  ==================
382
411
 
383
412
  * Added `suiteSetup` and `suiteTeardown` to TDD interface [David Henderson]
384
413
  * Added growl icons. Closes #84
385
414
  * Fixed coffee-script support
386
415
 
387
- 0.0.8 / 2011-11-25
416
+ 0.0.8 / 2011-11-25
388
417
  ==================
389
418
 
390
419
  * Fixed: use `Runner#total` for accurate reporting
391
420
 
392
- 0.0.7 / 2011-11-25
421
+ 0.0.7 / 2011-11-25
393
422
  ==================
394
423
 
395
424
  * Added `Hook`
@@ -399,17 +428,17 @@ Closes #247
399
428
  * Fixed: > 2 calls to done() only report the error once
400
429
  * Fixed: clear timer on failure. Closes #80
401
430
 
402
- 0.0.6 / 2011-11-25
431
+ 0.0.6 / 2011-11-25
403
432
  ==================
404
433
 
405
434
  * Fixed return on immediate async error. Closes #80
406
435
 
407
- 0.0.5 / 2011-11-24
436
+ 0.0.5 / 2011-11-24
408
437
  ==================
409
438
 
410
439
  * Fixed: make mocha.opts whitespace less picky [kkaefer]
411
440
 
412
- 0.0.4 / 2011-11-24
441
+ 0.0.4 / 2011-11-24
413
442
  ==================
414
443
 
415
444
  * Added `--interfaces`
@@ -417,13 +446,13 @@ Closes #247
417
446
  * Added `-c, --colors`. Closes #69
418
447
  * Fixed hook timeouts
419
448
 
420
- 0.0.3 / 2011-11-23
449
+ 0.0.3 / 2011-11-23
421
450
  ==================
422
451
 
423
452
  * Added `-C, --no-colors` to explicitly disable
424
453
  * Added coffee-script support
425
454
 
426
- 0.0.2 / 2011-11-22
455
+ 0.0.2 / 2011-11-22
427
456
  ==================
428
457
 
429
458
  * Fixed global leak detection due to Safari bind() change
@@ -431,13 +460,13 @@ Closes #247
431
460
  * Fixed: escape html entities in HTML reporter
432
461
  * Fixed pending test support for HTML reporter. Closes #66
433
462
 
434
- 0.0.1 / 2011-11-22
463
+ 0.0.1 / 2011-11-22
435
464
  ==================
436
465
 
437
466
  * Added `--timeout` second shorthand support, ex `--timeout 3s`.
438
467
  * Fixed "test end" event for uncaughtExceptions. Closes #61
439
468
 
440
- 0.0.1-alpha6 / 2011-11-19
469
+ 0.0.1-alpha6 / 2011-11-19
441
470
  ==================
442
471
 
443
472
  * Added travis CI support (needs enabling when public)
@@ -450,7 +479,7 @@ Closes #247
450
479
  * Fixed errors thrown in sync test-cases due to nextTick
451
480
  * Fixed Base.window.width... again give precedence to 0.6.x
452
481
 
453
- 0.0.1-alpha5 / 2011-11-17
482
+ 0.0.1-alpha5 / 2011-11-17
454
483
  ==================
455
484
 
456
485
  * Added `doc` reporter. Closes #33
@@ -472,12 +501,12 @@ Closes #247
472
501
  * Added protection against multiple calls to `done()`. Closes #35
473
502
  * Changed: bright yellow for slow Dot reporter tests
474
503
 
475
- 0.0.1-alpha1 / 2011-11-08
504
+ 0.0.1-alpha1 / 2011-11-08
476
505
  ==================
477
506
 
478
507
  * Missed this one :)
479
508
 
480
- 0.0.1-alpha1 / 2011-11-08
509
+ 0.0.1-alpha1 / 2011-11-08
481
510
  ==================
482
511
 
483
512
  * Initial release
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  (The MIT License)
2
2
 
3
- Copyright (c) 2011-2012 TJ Holowaychuk <tj@vision-media.ca>
3
+ Copyright (c) 2011-2013 TJ Holowaychuk <tj@vision-media.ca>
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining
6
6
  a copy of this software and associated documentation files (the
@@ -19,4 +19,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
19
  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20
20
  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21
21
  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/Makefile CHANGED
@@ -7,7 +7,10 @@ SUPPORT = $(wildcard support/*.js)
7
7
 
8
8
  all: mocha.js
9
9
 
10
- mocha.js: $(SRC) $(SUPPORT)
10
+ lib/browser/diff.js: node_modules/diff/diff.js
11
+ cp node_modules/diff/diff.js lib/browser/diff.js
12
+
13
+ mocha.js: $(SRC) $(SUPPORT) lib/browser/diff.js
11
14
  @node support/compile $(SRC)
12
15
  @cat \
13
16
  support/head.js \