Skip to content

Commit

Permalink
rename webdriver command to protractor
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoffer Åström committed Nov 2, 2017
1 parent e3985d0 commit 288b8aa
Show file tree
Hide file tree
Showing 15 changed files with 8 additions and 8 deletions.
5 changes: 3 additions & 2 deletions src/cli.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env node
/* eslint no-unused-expressions:0, prefer-destructuring: 0, no-console: 0, import/no-dynamic-require: 0, quote-props: 0, max-len: 0 */
/* eslint no-unused-expressions:0 */

const yargs = require('yargs');
require('./env');

Expand All @@ -8,6 +9,6 @@ process.env.NODE_ENV = process.env.NODE_ENV || 'test';
yargs
.usage('aw <command>')
.command(require('./node'))
.command(require('./webdriver'))
.command(require('./protractor'))
.command(require('./cdp'))
.argv;
File renamed without changes.
11 changes: 5 additions & 6 deletions src/webdriver/index.js → src/protractor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ const extend = require('extend');
const fs = require('fs');
const options = require('./options');

const webdriver = {
command: 'webdriver',
desc: 'Run webdriver',
const protractor = {
command: 'protractor',
desc: 'Run protractor',
getConfig(configPath) {
let foundConfigPath = configPath;
if (!fs.existsSync(configPath)) {
Expand All @@ -32,7 +32,6 @@ const webdriver = {
},
builder(yargs) {
return yargs
.usage('webdriver')
.options(options)
.argv;
},
Expand All @@ -51,7 +50,7 @@ const webdriver = {
process.exit(0);
}
}
const config = webdriver.getConfig(argv.config);
const config = protractor.getConfig(argv.config);
argv.require.map(require);
if (argv.glob.length) {
config.specs = argv.glob;
Expand All @@ -66,4 +65,4 @@ const webdriver = {
},
};

module.exports = webdriver;
module.exports = protractor;
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 288b8aa

Please sign in to comment.