From 5089e6b294c70eb0818d15c36b8a1f6a3c91ce7b Mon Sep 17 00:00:00 2001 From: tianqijiuyun-latiao <69459608+tianqijiuyun-latiao@users.noreply.github.com> Date: Wed, 24 Jun 2026 10:17:05 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20test(sidebar):=20=E8=A1=A5=E9=BD=90?= =?UTF-8?q?=E8=A7=86=E5=9B=BE=E5=85=83=E6=95=B0=E6=8D=AE=E5=8A=A0=E8=BD=BD?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=A1=A9=E8=BF=94=E5=9B=9E=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/sidebar/sidebarMetadataLoaders.test.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/sidebar/sidebarMetadataLoaders.test.ts b/frontend/src/components/sidebar/sidebarMetadataLoaders.test.ts index c591239..4615461 100644 --- a/frontend/src/components/sidebar/sidebarMetadataLoaders.test.ts +++ b/frontend/src/components/sidebar/sidebarMetadataLoaders.test.ts @@ -38,22 +38,25 @@ describe("buildSchemasMetadataQuerySpecs", () => { if (sql.includes("information_schema.views")) { return { success: true, + message: "", data: [{ view_name: "CHARACTER_SETS", schema_name: "information_schema" }], }; } if (sql.includes("information_schema.tables")) { return { success: true, + message: "", data: [{ view_name: "CHARACTER_SETS", schema_name: "information_schema", table_type: "SYSTEM VIEW" }], }; } if (sql.includes("SHOW FULL TABLES FROM `information_schema` WHERE Table_type = 'VIEW'")) { return { success: true, + message: "", data: [{ Tables_in_information_schema: "CHARACTER_SETS", Table_type: "VIEW" }], }; } - return { success: false, data: [] }; + return { success: false, message: "", data: [] }; }); const result = await loadViews({ config: { type: "mysql" } }, "information_schema");