Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip-Carneiro committed Oct 1, 2024
1 parent f761242 commit ed6be55
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/suite/webview.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,20 @@ describe("KdbDataSourceView", () => {
assert.ok(result);
});
});

describe("renderRowCountOptions", () => {
it("should render row count options", () => {
view.selectedServerVersion = 1.11;
const result = view.renderRowCountOptions();
assert.ok(result);
});

it("should not render row count options for older server version", () => {
view.selectedServerVersion = 1.1;
const result = view.renderRowCountOptions();
assert.ok(!result);
});
});
});

describe("KdbNewConnectionView", () => {
Expand Down

0 comments on commit ed6be55

Please sign in to comment.