Skip to content

Commit cf43939

Browse files
author
kingdaro
committed
test: add test for showing help on no options
1 parent d67f4b7 commit cf43939

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
"use strict";
2+
3+
module.exports = function testAssertions(code, stdout, stderr) {
4+
expect(code).toBe(2);
5+
expect(stdout).toEqual(expect.anything());
6+
expect(stdout).toContain("Config options:");
7+
expect(stdout).toContain("Basic options:");
8+
expect(stdout).toContain("Module options:");
9+
expect(stdout).toContain("Output options:");
10+
expect(stdout).toContain("Advanced options:");
11+
expect(stdout).toContain("Resolving options:");
12+
expect(stdout).toContain("Optimizing options:");
13+
expect(stdout).toContain("Stats options:");
14+
expect(stdout).toContain("Options:");
15+
expect(stderr).toHaveLength(0);
16+
};

test/binCases/help/help-output-no-command/test.opts

Whitespace-only changes.

0 commit comments

Comments
 (0)