Skip to content
This repository was archived by the owner on Apr 26, 2021. It is now read-only.

Commit f184581

Browse files
committed
Add another test for sanity
1 parent 9c40803 commit f184581

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test-js/test.js

+6
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,12 @@ describe('neodoc', () => {
6969
expect(out).to.deep.equal({"--help": 1, ".help": help });
7070
});
7171

72+
it('should return the help (implicit, should not fail)', () => {
73+
const help = 'usage: p <word>';
74+
const out = neodoc.run(help, { dontExit: true, argv: [ '--help' ]});
75+
expect(out).to.deep.equal({"--help": 1, ".help": help });
76+
});
77+
7278
it('should return the help (implicit w/ alias)', () => {
7379
const help = `\
7480
usage: p

0 commit comments

Comments
 (0)