Skip to content

Commit

Permalink
Merge branch 'master' into v3.0.0
Browse files Browse the repository at this point in the history
* master:
  don't truncate message-list Error in Base.list(); closes #2361 (#2365)
  Add --preserve-symlinks flag for node (#2364)
  add "expect" to eslint globals in test/
  • Loading branch information
boneskull committed Jul 9, 2016
2 parents 2d3e1cf + b37499f commit 3f23179
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions bin/_mocha
Expand Up @@ -84,6 +84,7 @@ program
.option('--globals <names>', 'allow the given comma-delimited global [names]', list, [])
.option('--es_staging', 'enable all staged features')
.option('--harmony<_classes,_generators,...>', 'all node --harmony* flags are available')
.option('--preserve-symlinks', 'Instructs the module loader to preserve symbolic links when resolving and caching modules')
.option('--icu-data-dir', 'include ICU data')
.option('--inline-diffs', 'display actual/expected differences inline within each string')
.option('--interfaces', 'display available interfaces')
Expand Down
1 change: 1 addition & 0 deletions bin/mocha
Expand Up @@ -50,6 +50,7 @@ process.argv.slice(2).forEach(function(arg){
else if (0 == arg.indexOf('--trace')) args.unshift(arg);
else if (0 == arg.indexOf('--icu-data-dir')) args.unshift(arg);
else if (0 == arg.indexOf('--max-old-space-size')) args.unshift(arg);
else if (0 == arg.indexOf('--preserve-symlinks')) args.unshift(arg);
else args.push(arg);
break;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/reporters/base.js
Expand Up @@ -180,7 +180,7 @@ exports.list = function(failures) {
message = '';
}
var stack = err.stack || message;
var index = stack.indexOf(message);
var index = message ? stack.indexOf(message) : -1;
var actual = err.actual;
var expected = err.expected;
var escape = true;
Expand Down
2 changes: 2 additions & 0 deletions test/.eslintrc
@@ -1,3 +1,5 @@
---
env:
mocha: true
globals:
expect: false

0 comments on commit 3f23179

Please sign in to comment.