Skip to content

Commit bc66fa1

Browse files
committed
test: fix runner check of -e
1 parent 6b197c5 commit bc66fa1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/e2e/runner.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ if (args.indexOf('-c') < 0) {
4343
// check if multiple envs are provided. The way Nightwatch works
4444
// requires to explicitely provide the conf
4545
const envs = args[args.indexOf('-e') + 1]
46-
if (!envs || envs.indexOf(',') > -1) {
46+
if (envs && envs.indexOf(',') > -1) {
4747
console.warn(
48-
`Specify the conf with providing multiple browsers:\n$ yarn run test:e2e ${args.join(
48+
`Specify the conf when providing multiple browsers:\n$ yarn run test:e2e ${args.join(
4949
' '
5050
)} -c ${NW_CONFIG}`
5151
)

0 commit comments

Comments
 (0)