Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
43 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
language: node_js | ||
node_js: | ||
- '5' | ||
- '4' | ||
before_install: | ||
- 'npm install -g npm@latest' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import test from 'ava'; | ||
import path from 'path'; | ||
import childProcess from 'child_process'; | ||
import pify from 'pify'; | ||
|
||
const exec = pify(childProcess.exec); | ||
|
||
|
||
test('shows help on --help', async t => { | ||
const stdout = await exec('../bin/init.js --help'); | ||
t.is(stdout.trim(), 'Usage: init [options]\n\n Create a MERN app in current directory!\n\n Options:\n\n -h, --help output usage information\n -i, --init [type] Init a new mern boilerplate'); | ||
}); | ||
|
||
|
||
test('shows help on --h', async t => { | ||
const stdout = await exec('../bin/init.js --help'); | ||
t.is(stdout.trim(), 'Usage: init [options]\n\n Create a MERN app in current directory!\n\n Options:\n\n -h, --help output usage information\n -i, --init [type] Init a new mern boilerplate'); | ||
}); | ||
|
||
|