Skip to content

armgit / dbx

Public Imported from GitHub
0

25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。

test(sidebar): align flat tree buffer expectation

t8y2c8d4a04a318c
diff --git a/tests/useFlatTree.test.ts b/tests/useFlatTree.test.ts
index 60b0ad2416..5744f37a9a 100644
--- a/tests/useFlatTree.test.ts
+++ b/tests/useFlatTree.test.ts
@@ -50,7 +50,8 @@ test("shouldVirtualizeFlatTree virtualizes every non-empty sidebar tree", () =>
test("sidebar virtual tree keeps enough buffered rows for fast scrolling", () => {
assert.equal(SIDEBAR_TREE_ROW_HEIGHT, 28);
- assert.ok(SIDEBAR_TREE_SCROLL_BUFFER >= SIDEBAR_TREE_ROW_HEIGHT * 40);
+ assert.equal(SIDEBAR_TREE_SCROLL_BUFFER, 600);
+ assert.ok(SIDEBAR_TREE_SCROLL_BUFFER >= SIDEBAR_TREE_ROW_HEIGHT * 20);
});
test("sidebar virtual tree prerenders enough rows for the first frame", () => {