From 0d5cf4a3604ec02600b93d412b8e2d55af4e5ae6 Mon Sep 17 00:00:00 2001 From: Philip Carneiro Date: Tue, 13 Aug 2024 13:55:01 +0100 Subject: [PATCH] fix tests --- test/suite/webview.test.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/suite/webview.test.ts b/test/suite/webview.test.ts index 007d9f2b..df50eb90 100644 --- a/test/suite/webview.test.ts +++ b/test/suite/webview.test.ts @@ -601,11 +601,10 @@ describe("KdbNewConnectionView", () => { view.connectionData = { connType: 0, serverName: "testServer" }; const result = view.renderEditConnectionForm(); - assert.strictEqual(view.isBundledQ, true); assert.strictEqual(view.oldAlias, "testServer"); assert.strictEqual(view.serverType, ServerType.KDB); - assert.strictEqual(result.values[0].includes("Bundled q"), true); + assert.strictEqual(result.values[1].includes("Bundled q"), true); }); it("should set isBundledQ to false and return correct HTML when connType is 1", () => { @@ -616,7 +615,7 @@ describe("KdbNewConnectionView", () => { assert.strictEqual(view.isBundledQ, false); assert.strictEqual(view.oldAlias, "testServer"); assert.strictEqual(view.serverType, ServerType.KDB); - assert.strictEqual(result.values[0].includes("My q"), true); + assert.strictEqual(result.values[1].includes("My q"), true); }); it("should set serverType to INSIGHTS and return correct HTML when connType is 2", () => { @@ -627,7 +626,7 @@ describe("KdbNewConnectionView", () => { assert.strictEqual(view.isBundledQ, false); assert.strictEqual(view.oldAlias, "testServer"); assert.strictEqual(view.serverType, ServerType.INSIGHTS); - assert.strictEqual(result.values[0].includes("Insights"), true); + assert.strictEqual(result.values[1].includes("Insights"), true); }); });