Skip to content

Commit

Permalink
variants fixes for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Manny Henri committed Jun 7, 2018
1 parent 7eb5ac5 commit a19847f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 deletions.
16 changes: 10 additions & 6 deletions package.json
Expand Up @@ -48,12 +48,16 @@
"no-use-before-define": 0,
"newline-per-chained-call": 0,
"import/no-dynamic-require": 0,
"prefer-destructuring": ["error", {
"array": false,
"object": true
}, {
"enforceForRenamedProperties": false
}],
"prefer-destructuring": [
"error",
{
"array": false,
"object": true
},
{
"enforceForRenamedProperties": false
}
],
"arrow-body-style": [
2,
"as-needed"
Expand Down
6 changes: 3 additions & 3 deletions src/commands/main.js
Expand Up @@ -6,9 +6,9 @@ program
.option('-v, --version', 'check version')
.description('Initialize a MERN powered project')
.command('init [name]', 'Initialize a MERN project.')
// .command('list', 'List MERN variants')
// .command('search [term]', 'Search for MERN variant')
// .command('info [term]', 'View details of a MERN variant')
.command('list', 'List MERN variants')
.command('search [term]', 'Search for MERN variant')
.command('info [term]', 'View details of a MERN variant')
.parse(process.argv);

if (!program.args.length) {
Expand Down
6 changes: 6 additions & 0 deletions tests/main-test.js
Expand Up @@ -13,6 +13,9 @@ test('shows help on --help', async (t) => {
Commands:
init [name] Initialize a MERN project.
list List MERN variants
search [term] Search for MERN variant
info [term] View details of a MERN variant
help [cmd] display help for [cmd]
Initialize a MERN powered project
Expand All @@ -33,6 +36,9 @@ test('shows help on --h', async (t) => {
Commands:
init [name] Initialize a MERN project.
list List MERN variants
search [term] Search for MERN variant
info [term] View details of a MERN variant
help [cmd] display help for [cmd]
Initialize a MERN powered project
Expand Down

0 comments on commit a19847f

Please sign in to comment.