@@ -833,7 +833,7 @@ module.exports = function (suites, context, mocha) {
833
833
* This is only present if flag --delay is passed into Mocha. It triggers
834
834
* root suite execution.
835
835
*
836
- * @param {Suite } suite The root wuite .
836
+ * @param {Suite } suite The root suite .
837
837
* @return {Function } A function which runs the root suite
838
838
*/
839
839
runWithSuite : function runWithSuite ( suite ) {
@@ -3243,7 +3243,7 @@ function List (runner) {
3243
3243
} ) ;
3244
3244
3245
3245
runner . on ( 'pass' , function ( test ) {
3246
- var fmt = color ( 'checkmark' , ' ' + Base . symbols . dot ) +
3246
+ var fmt = color ( 'checkmark' , ' ' + Base . symbols . ok ) +
3247
3247
color ( 'pass' , ' %s: ' ) +
3248
3248
color ( test . speed , '%dms' ) ;
3249
3249
cursor . CR ( ) ;
@@ -3973,7 +3973,7 @@ function XUnit (runner, options) {
3973
3973
var tests = [ ] ;
3974
3974
var self = this ;
3975
3975
3976
- if ( options . reporterOptions && options . reporterOptions . output ) {
3976
+ if ( options && options . reporterOptions && options . reporterOptions . output ) {
3977
3977
if ( ! fs . createWriteStream ) {
3978
3978
throw new Error ( 'file output not supported in browser' ) ;
3979
3979
}
@@ -4331,8 +4331,8 @@ Runnable.prototype.resetTimeout = function () {
4331
4331
if ( ! self . _enableTimeouts ) {
4332
4332
return ;
4333
4333
}
4334
- self . callback ( new Error ( 'timeout! Test didn\'t complete within ' + ms +
4335
- '. For async tests, make sure you are calling \' done\' or that the returned Promise eventually resolves.' ) ) ;
4334
+ self . callback ( new Error ( 'Timeout of ' + ms +
4335
+ 'ms exceeded . For async tests and hooks, ensure " done()" is called; if returning a Promise, ensure it resolves.' ) ) ;
4336
4336
self . timedOut = true ;
4337
4337
} , ms ) ;
4338
4338
} ;
@@ -4391,8 +4391,8 @@ Runnable.prototype.run = function (fn) {
4391
4391
self . duration = new Date ( ) - start ;
4392
4392
finished = true ;
4393
4393
if ( ! err && self . duration > ms && self . _enableTimeouts ) {
4394
- err = new Error ( 'timeout! Test didn\'t complete within ' + ms +
4395
- ' . For async tests, make sure you are calling \' done\' or that the returned Promise eventually resolves.') ;
4394
+ err = new Error ( 'Timeout of ' + ms +
4395
+ 'ms exceeded . For async tests and hooks, ensure " done()" is called; if returning a Promise, ensure it resolves.') ;
4396
4396
}
4397
4397
fn ( err ) ;
4398
4398
}
@@ -5972,6 +5972,7 @@ var join = path.join;
5972
5972
var readdirSync = require ( 'fs' ) . readdirSync ;
5973
5973
var statSync = require ( 'fs' ) . statSync ;
5974
5974
var watchFile = require ( 'fs' ) . watchFile ;
5975
+ var lstatSync = require ( 'fs' ) . lstatSync ;
5975
5976
var toISOString = require ( './to-iso-string' ) ;
5976
5977
5977
5978
/**
@@ -6208,7 +6209,7 @@ exports.files = function (dir, ext, ret) {
6208
6209
. filter ( ignored )
6209
6210
. forEach ( function ( path ) {
6210
6211
path = join ( dir , path ) ;
6211
- if ( statSync ( path ) . isDirectory ( ) ) {
6212
+ if ( lstatSync ( path ) . isDirectory ( ) ) {
6212
6213
exports . files ( path , ext , ret ) ;
6213
6214
} else if ( path . match ( re ) ) {
6214
6215
ret . push ( path ) ;
0 commit comments