-
-
Notifications
You must be signed in to change notification settings - Fork 602
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add test for showing help on no options
- Loading branch information
kingdaro
committed
Jan 26, 2018
1 parent
d67f4b7
commit cf43939
Showing
2 changed files
with
16 additions
and
0 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,16 @@ | ||
"use strict"; | ||
|
||
module.exports = function testAssertions(code, stdout, stderr) { | ||
expect(code).toBe(2); | ||
expect(stdout).toEqual(expect.anything()); | ||
expect(stdout).toContain("Config options:"); | ||
expect(stdout).toContain("Basic options:"); | ||
expect(stdout).toContain("Module options:"); | ||
expect(stdout).toContain("Output options:"); | ||
expect(stdout).toContain("Advanced options:"); | ||
expect(stdout).toContain("Resolving options:"); | ||
expect(stdout).toContain("Optimizing options:"); | ||
expect(stdout).toContain("Stats options:"); | ||
expect(stdout).toContain("Options:"); | ||
expect(stderr).toHaveLength(0); | ||
}; |
Empty file.