Skip to content

Commit

Permalink
updated tests for travis
Browse files Browse the repository at this point in the history
  • Loading branch information
Manny Henri committed Jun 7, 2018
1 parent 104837c commit 2919c5f
Showing 1 changed file with 4 additions and 28 deletions.
32 changes: 4 additions & 28 deletions tests/main-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,46 +6,22 @@ const exec = pify(childProcess.exec);


test('shows help on --help', async (t) => {
const stdout = await exec('../bin/mern.js --help');
const stdout = await exec('./bin/mern.js --help');
t.is(stdout.trim(), `Usage: mern [options] [command]
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
Options:
-h, --help output usage information
-V, --version output the version number
-v, --version check version`);
});


test('shows help on --h', async (t) => {
const stdout = await exec('../bin/mern.js --help');
t.is(stdout.trim(), `Usage: mern [options] [command]
-v, --version check version
-h, --help output usage information
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
Options:
-h, --help output usage information
-V, --version output the version number
-v, --version check version`);
help [cmd] display help for [cmd]`);
});

0 comments on commit 2919c5f

Please sign in to comment.