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 21, 2024
1 parent c108b8a commit 845577f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/suite/webview.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -334,19 +334,19 @@ describe("KdbNewConnectionView", () => {
describe("renderServerNameField", () => {
it("should render server name field for bundled q", () => {
const result = view.renderServerNameField(ServerType.KDB, true);
assert.strictEqual(result.strings[0].includes("Server 1"), false);
assert.strictEqual(result.strings[0].includes("Server-1"), false);
});

it("should render server name field for KDB", () => {
view.isBundledQ = false;
const result = view.renderServerNameField(ServerType.KDB);
assert.strictEqual(result.strings[0].includes("Server 1"), true);
assert.strictEqual(result.strings[0].includes("Server-1"), true);
});

it("should render server name field for Insights", () => {
view.isBundledQ = false;
const result = view.renderServerNameField(ServerType.INSIGHTS, false);
assert.strictEqual(result.strings[0].includes("Insights 1"), true);
assert.strictEqual(result.strings[0].includes("Insights-1"), true);
});
});

Expand Down

0 comments on commit 845577f

Please sign in to comment.