Skip to content

Commit

Permalink
chore(test): remove useless code and comments (#2808)
Browse files Browse the repository at this point in the history
* chore(test): remove useless code and comments

* chore: comment
  • Loading branch information
zrh122 authored and posva committed Aug 23, 2019
1 parent be66504 commit 842a760
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/e2e/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ const NW_CONFIG = isLocal
? resolve(__dirname, './nightwatch.browserstack.js')
: resolve(__dirname, './nightwatch.config.js')

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

0 comments on commit 842a760

Please sign in to comment.