From ae3ba93b9614751e00880e8e1893072b198fa0d5 Mon Sep 17 00:00:00 2001 From: Rahul Pidde <206018639+cx-rahul-pidde@users.noreply.github.com> Date: Thu, 16 Oct 2025 12:13:20 +0530 Subject: [PATCH 1/2] fixed int. test --- src/tests/LearnMoreDescriptions.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/LearnMoreDescriptions.test.ts b/src/tests/LearnMoreDescriptions.test.ts index 3118dbba..c34e1b48 100644 --- a/src/tests/LearnMoreDescriptions.test.ts +++ b/src/tests/LearnMoreDescriptions.test.ts @@ -16,6 +16,6 @@ describe("LearnMoreDescriptions cases",() => { const auth = new CxWrapper(cxScanConfig); const data = await auth.learnMore("") const cxCommandOutput: CxCommandOutput = data; - expect(cxCommandOutput.status).toBe("Value of query-id is invalid\n"); + expect(cxCommandOutput.status.trim()).toBe("Value of query-id is invalid\n"); }) }) From 8c7a0904ed17b00d920fd41ce7e2c52837d00aa4 Mon Sep 17 00:00:00 2001 From: Rahul Pidde <206018639+cx-rahul-pidde@users.noreply.github.com> Date: Thu, 16 Oct 2025 12:35:16 +0530 Subject: [PATCH 2/2] updated code --- src/tests/LearnMoreDescriptions.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/LearnMoreDescriptions.test.ts b/src/tests/LearnMoreDescriptions.test.ts index c34e1b48..28150dbe 100644 --- a/src/tests/LearnMoreDescriptions.test.ts +++ b/src/tests/LearnMoreDescriptions.test.ts @@ -16,6 +16,6 @@ describe("LearnMoreDescriptions cases",() => { const auth = new CxWrapper(cxScanConfig); const data = await auth.learnMore("") const cxCommandOutput: CxCommandOutput = data; - expect(cxCommandOutput.status.trim()).toBe("Value of query-id is invalid\n"); + expect(cxCommandOutput.status.trim()).toBe("Value of query-id is invalid"); }) })