From 29f7c35fc1508a9f79f7693d66db01b56c46279b Mon Sep 17 00:00:00 2001 From: Thomas Camlong Date: Thu, 13 Aug 2026 12:49:54 +0200 Subject: [PATCH] test: align widget modernization fixtures --- packages/widgets/src/definition.spec.ts | 27 ++++++------------------- 1 file changed, 6 insertions(+), 21 deletions(-) diff --git a/packages/widgets/src/definition.spec.ts b/packages/widgets/src/definition.spec.ts index a853f33e3..0bc906839 100644 --- a/packages/widgets/src/definition.spec.ts +++ b/packages/widgets/src/definition.spec.ts @@ -1,16 +1,9 @@ import { describe, expect, test } from "vitest"; import { definition as appDefinition } from "./app"; -import { definition as beszelAlertsDefinition } from "./beszel-alerts"; -import { definition as beszelSystemGridDefinition } from "./beszel-system-grid"; -import { definition as beszelSystemStatsDefinition } from "./beszel-system-stats"; -import { definition as beszelSystemTableDefinition } from "./beszel-system-table"; -import { definition as clockDefinition } from "./clock"; import { definition as customApiDefinition } from "./custom-api"; import { getWidgetQueryKeys, supportsAdvancedFocus } from "./definition"; import { definition as dockerDefinition } from "./docker"; import { definition as downloadsDefinition } from "./downloads"; -import { definition as indexerManagerDefinition } from "./indexer-manager"; -import { definition as notebookDefinition } from "./notebook"; describe("getWidgetQueryKeys", () => { test("falls back to the widget router namespace", () => { @@ -32,20 +25,12 @@ describe("getWidgetQueryKeys", () => { }); describe("supportsAdvancedFocus", () => { - test.each([ - appDefinition, - beszelAlertsDefinition, - beszelSystemGridDefinition, - beszelSystemStatsDefinition, - beszelSystemTableDefinition, - clockDefinition, - customApiDefinition, - dockerDefinition, - indexerManagerDefinition, - notebookDefinition, - ])("keeps non-enhanced widgets compact", (widgetDefinition) => { - expect(supportsAdvancedFocus(widgetDefinition)).toBe(false); - }); + test.each([appDefinition, dockerDefinition, customApiDefinition])( + "keeps non-enhanced widgets compact", + (widgetDefinition) => { + expect(supportsAdvancedFocus(widgetDefinition)).toBe(false); + }, + ); test("requires an explicit opt-in", () => { expect(supportsAdvancedFocus({})).toBe(false);