Skip to content

Commit

Permalink
test: add test for showing help on no options
Browse files Browse the repository at this point in the history
  • Loading branch information
kingdaro committed Jan 26, 2018
1 parent d67f4b7 commit cf43939
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/binCases/help/help-output-no-command/stdin.js
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.

0 comments on commit cf43939

Please sign in to comment.