From b5dbeae86461aa32d1bf462375a64ba597e0d714 Mon Sep 17 00:00:00 2001 From: Thomas Camlong Date: Sun, 9 Aug 2026 09:21:55 +0200 Subject: [PATCH] test: fix custom option repair fixture --- .../custom-widgets/src/test/options.spec.ts | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/packages/custom-widgets/src/test/options.spec.ts b/packages/custom-widgets/src/test/options.spec.ts index 078cfc62a..628246b7a 100644 --- a/packages/custom-widgets/src/test/options.spec.ts +++ b/packages/custom-widgets/src/test/options.spec.ts @@ -71,17 +71,16 @@ describe("lean Custom Widget options", () => { }); it("replaces stale values with current defaults", () => { - const options = customWidgetDefinitionSchema.parse({ - $schema: "homarr-custom-widget-v2", - name: "Updated options", - sources: {}, - requests: {}, - options: { - limit: { label: "Limit", control: "slider", default: 5, min: 1, max: 10 }, - label: { label: "Label", control: "text", default: "Default" }, - }, - template: "{options.limit}", - }).options; + const options = { + limit: customWidgetOptionSchema.parse({ + label: "Limit", + control: "slider", + default: 5, + min: 1, + max: 10, + }), + label: customWidgetOptionSchema.parse({ label: "Label", control: "text", default: "Default" }), + }; const normalized = normalizeCustomWidgetOptions(options, { limit: "5",