Skip to content

Commit 842a760

Browse files
zrh122posva
authored andcommitted
chore(test): remove useless code and comments (#2808)
* chore(test): remove useless code and comments * chore: comment
1 parent be66504 commit 842a760

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/e2e/runner.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ const NW_CONFIG = isLocal
3737
? resolve(__dirname, './nightwatch.browserstack.js')
3838
: resolve(__dirname, './nightwatch.config.js')
3939

40-
// add a configuration by default if not provided
41-
// add a configuration by default if not provided
40+
// check -c option is passed when usig multiple environments
4241
if (args.indexOf('-c') < 0) {
4342
// check if multiple envs are provided. The way Nightwatch works
4443
// requires to explicitely provide the conf
@@ -51,7 +50,6 @@ if (args.indexOf('-c') < 0) {
5150
)
5251
process.exit(1)
5352
}
54-
args.push('-c', NW_CONFIG)
5553
} else if (isLocal) {
5654
const conf = args[args.indexOf('-c') + 1]
5755
if (resolve('.', conf) !== NW_CONFIG) {

0 commit comments

Comments
 (0)