From 793e4d35ec038321c06bac8d6a5d18073e70c6e8 Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Thu, 24 Feb 2022 11:07:42 -0700 Subject: [PATCH] feat(testing): add new test for cli.ts (#4898) * feat(testing): add new test for cli.ts * fixup!: update parse test --- test/unit/node/cli.test.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/unit/node/cli.test.ts b/test/unit/node/cli.test.ts index 57d19317..e8e2c85b 100644 --- a/test/unit/node/cli.test.ts +++ b/test/unit/node/cli.test.ts @@ -371,6 +371,9 @@ describe("parser", () => { }), ).toThrowError(expectedErrMsg) }) + it("should ignore optional strings set to false", async () => { + expect(parse(["--cert=false"])).toEqual({}) + }) }) describe("cli", () => {