test: tighten config custom theme assertion · openclaw/openclaw@08a38dc
steipete
·
2026-05-09
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -986,7 +986,7 @@ describe("config view", () => {
|
986 | 986 | const customButton = findButtonByText(container, "Light Green"); |
987 | 987 | expect(customButton.disabled).toBe(false); |
988 | 988 | customButton.click(); |
989 | | -expect(setTheme).toHaveBeenCalledWith("custom", expect.any(Object)); |
| 989 | +expect(setTheme).toHaveBeenCalledWith("custom", { element: customButton }); |
990 | 990 | |
991 | 991 | const replaceButton = findButtonContainingText(container, "Replace Light Green"); |
992 | 992 | const clearButton = findButtonContainingText(container, "Clear Light Green"); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。