mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 23:50:41 +00:00
test: tighten debug view command assertion
This commit is contained in:
@@ -58,7 +58,11 @@ describe("renderDebug", () => {
|
||||
);
|
||||
|
||||
const command = container.querySelector<HTMLElement>(".callout .mono");
|
||||
expect(command?.textContent).toBe("openclaw security audit --deep");
|
||||
expect(command).toBeTruthy();
|
||||
if (!command) {
|
||||
throw new Error("expected debug security audit command");
|
||||
}
|
||||
expect(command.textContent).toBe("openclaw security audit --deep");
|
||||
expect(container.textContent).toContain("安全审计");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user