indexof
This commit is contained in:
parent
f16e19d2b2
commit
88b2f89877
5 changed files with 8 additions and 8 deletions
|
|
@ -10,10 +10,10 @@ const server = require('../../build/dev-server.js')
|
|||
// For more information on Nightwatch's config file, see
|
||||
// http://nightwatchjs.org/guide#settings-file
|
||||
let opts = process.argv.slice(2)
|
||||
if (opts.indexOf('--config') === -1) {
|
||||
if (!opts.includes('--config')) {
|
||||
opts = opts.concat(['--config', 'test/e2e/nightwatch.conf.js'])
|
||||
}
|
||||
if (opts.indexOf('--env') === -1) {
|
||||
if (!opts.includes('--env')) {
|
||||
opts = opts.concat(['--env', 'chrome'])
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue