Skip to content

Commit a19847f

Browse files
author
Manny Henri
committed
variants fixes for tests
1 parent 7eb5ac5 commit a19847f

File tree

3 files changed

+19
-9
lines changed

3 files changed

+19
-9
lines changed

package.json

+10-6
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,16 @@
4848
"no-use-before-define": 0,
4949
"newline-per-chained-call": 0,
5050
"import/no-dynamic-require": 0,
51-
"prefer-destructuring": ["error", {
52-
"array": false,
53-
"object": true
54-
}, {
55-
"enforceForRenamedProperties": false
56-
}],
51+
"prefer-destructuring": [
52+
"error",
53+
{
54+
"array": false,
55+
"object": true
56+
},
57+
{
58+
"enforceForRenamedProperties": false
59+
}
60+
],
5761
"arrow-body-style": [
5862
2,
5963
"as-needed"

src/commands/main.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ program
66
.option('-v, --version', 'check version')
77
.description('Initialize a MERN powered project')
88
.command('init [name]', 'Initialize a MERN project.')
9-
// .command('list', 'List MERN variants')
10-
// .command('search [term]', 'Search for MERN variant')
11-
// .command('info [term]', 'View details of a MERN variant')
9+
.command('list', 'List MERN variants')
10+
.command('search [term]', 'Search for MERN variant')
11+
.command('info [term]', 'View details of a MERN variant')
1212
.parse(process.argv);
1313

1414
if (!program.args.length) {

tests/main-test.js

+6
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ test('shows help on --help', async (t) => {
1313
Commands:
1414
1515
init [name] Initialize a MERN project.
16+
list List MERN variants
17+
search [term] Search for MERN variant
18+
info [term] View details of a MERN variant
1619
help [cmd] display help for [cmd]
1720
1821
Initialize a MERN powered project
@@ -33,6 +36,9 @@ test('shows help on --h', async (t) => {
3336
Commands:
3437
3538
init [name] Initialize a MERN project.
39+
list List MERN variants
40+
search [term] Search for MERN variant
41+
info [term] View details of a MERN variant
3642
help [cmd] display help for [cmd]
3743
3844
Initialize a MERN powered project

0 commit comments

Comments
 (0)