test: assert debug callout class · openclaw/openclaw@ac3bf79
shakkernerd
·
2026-05-12
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -66,7 +66,7 @@ describe("renderDebug", () => {
|
66 | 66 | throw new Error("expected debug security audit command"); |
67 | 67 | } |
68 | 68 | const callout = container.querySelector(".callout"); |
69 | | -expect(callout?.classList.contains("warn")).toBe(true); |
| 69 | +expect(callout?.className).toBe("callout warn"); |
70 | 70 | expect(normalizedText(callout)).toBe( |
71 | 71 | "安全审计: 1 个警告 · 2 条信息. 运行 openclaw security audit --deep 查看详情。", |
72 | 72 | ); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。