Pass through mocha invert option from test CLI
This commit is contained in:
parent
69c0a33c85
commit
065887e712
1 changed files with 3 additions and 1 deletions
|
@ -10,6 +10,7 @@ const url = require('url');
|
||||||
var argv = require('yargs')
|
var argv = require('yargs')
|
||||||
.boolean('ci')
|
.boolean('ci')
|
||||||
.string('g').alias('g', 'grep')
|
.string('g').alias('g', 'grep')
|
||||||
|
.boolean('i').alias('i', 'invert')
|
||||||
.argv;
|
.argv;
|
||||||
|
|
||||||
var window = null;
|
var window = null;
|
||||||
|
@ -78,7 +79,8 @@ app.on('ready', function() {
|
||||||
pathname: __dirname + '/index.html',
|
pathname: __dirname + '/index.html',
|
||||||
protocol: 'file',
|
protocol: 'file',
|
||||||
query: {
|
query: {
|
||||||
grep: argv.grep
|
grep: argv.grep,
|
||||||
|
invert: argv.invert ? 'true': ''
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
window.on('unresponsive', function() {
|
window.on('unresponsive', function() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue