mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-18 19:44:44 +00:00
test: assert debug callout class
This commit is contained in:
@@ -66,7 +66,7 @@ describe("renderDebug", () => {
|
||||
throw new Error("expected debug security audit command");
|
||||
}
|
||||
const callout = container.querySelector(".callout");
|
||||
expect(callout?.classList.contains("warn")).toBe(true);
|
||||
expect(callout?.className).toBe("callout warn");
|
||||
expect(normalizedText(callout)).toBe(
|
||||
"安全审计: 1 个警告 · 2 条信息. 运行 openclaw security audit --deep 查看详情。",
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user