Skip to content

Commit 0eacb32

Browse files
committed
feat(testing): add new test for cli.ts
1 parent f9402a6 commit 0eacb32

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/unit/node/cli.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,9 @@ describe("parser", () => {
371371
}),
372372
).toThrowError(expectedErrMsg)
373373
})
374+
it("should not throw if an optional string is set to false", async () => {
375+
expect(() => parse(["--cert=false"])).not.toThrowError()
376+
})
374377
})
375378

376379
describe("cli", () => {

0 commit comments

Comments
 (0)