-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
40d6cc2
commit cc93ae3
Showing
3 changed files
with
38 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"name": "create-kkt", | ||
"version": "2.3.0", | ||
"description": "Creates a KKT application using the command line.", | ||
"homepage": "https://github.com/kktjs/create-kkt", | ||
"homepage": "https://kktjs.github.io/create-kkt", | ||
"author": "Kenny Wong <[email protected]> (https://github.com/jaywcjlove)", | ||
"main": "lib/index.js", | ||
"license": "MIT", | ||
|
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,16 @@ | ||
/** @jest-environment node */ | ||
import { exampleHelp, run } from '../src/'; | ||
|
||
it('cliHelp test case', async () => { | ||
expect(exampleHelp()).toBeUndefined(); | ||
// process.argv.push('-v'); | ||
// expect(await run()).toBeUndefined(); | ||
process.argv.push('--version'); | ||
expect(await run()).toBeUndefined(); | ||
}); | ||
|
||
it('version test case', async () => { | ||
expect(exampleHelp()).toBeUndefined(); | ||
process.argv.push('-h'); | ||
expect(await run()).toBeUndefined(); | ||
}); |
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