test: tighten config custom theme assertion

This commit is contained in:
Peter Steinberger
2026-05-09 04:53:34 +01:00
parent 2ec43dce47
commit 08a38dca08

View File

@@ -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");