From bfde64124ba3b1dff816ef6e45ebe3710b8d8254 Mon Sep 17 00:00:00 2001 From: Amber Date: Tue, 5 Nov 2024 09:53:00 -0500 Subject: [PATCH] trying to fix my 2 added unit tests for terminal output given flags Signed-off-by: Amber --- .../src/cmd/__tests__/CommandProcessor.unit.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/imperative/src/cmd/__tests__/CommandProcessor.unit.test.ts b/packages/imperative/src/cmd/__tests__/CommandProcessor.unit.test.ts index 064f813d9..41cbc4ed0 100644 --- a/packages/imperative/src/cmd/__tests__/CommandProcessor.unit.test.ts +++ b/packages/imperative/src/cmd/__tests__/CommandProcessor.unit.test.ts @@ -199,7 +199,7 @@ describe("Command Processor", () => { arguments: { _: ["sample", "cmd", "--help"], $0: "", - valid: true + valid: false } }; @@ -207,7 +207,7 @@ describe("Command Processor", () => { arguments: { _: ["sample", "cmd", "--version"], $0: "", - valid: true + valid: false } }; @@ -220,7 +220,7 @@ describe("Command Processor", () => { commandLine: "", promptPhrase: "dummyPrompt", config: { - isValid: () => false, // Simulate faulty config + validate: () => ({valid: false}), // Simulate faulty config } as any, });