From 08a38dca088da77f1cc927fa3a1e673ab02b07f6 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 9 May 2026 04:53:34 +0100 Subject: [PATCH] test: tighten config custom theme assertion --- ui/src/ui/views/config.browser.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/ui/views/config.browser.test.ts b/ui/src/ui/views/config.browser.test.ts index 85bb57ee5a6..e061af0f532 100644 --- a/ui/src/ui/views/config.browser.test.ts +++ b/ui/src/ui/views/config.browser.test.ts @@ -986,7 +986,7 @@ describe("config view", () => { const customButton = findButtonByText(container, "Light Green"); expect(customButton.disabled).toBe(false); customButton.click(); - expect(setTheme).toHaveBeenCalledWith("custom", expect.any(Object)); + expect(setTheme).toHaveBeenCalledWith("custom", { element: customButton }); const replaceButton = findButtonContainingText(container, "Replace Light Green"); const clearButton = findButtonContainingText(container, "Clear Light Green");