Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip-Carneiro-KX committed Aug 13, 2024
1 parent 0c13a19 commit 0d5cf4a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/suite/webview.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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", () => {
Expand All @@ -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", () => {
Expand All @@ -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);
});
});

Expand Down

0 comments on commit 0d5cf4a

Please sign in to comment.