mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-18 13:30:48 +00:00
fix(ci): repair security and route test fixtures
This commit is contained in:
@@ -32,9 +32,12 @@ describe("program routes", () => {
|
||||
await expect(route?.run(argv)).resolves.toBe(false);
|
||||
}
|
||||
|
||||
it("matches status route and always preloads plugins", () => {
|
||||
it("matches status route and preloads plugins only for text output", () => {
|
||||
const route = expectRoute(["status"]);
|
||||
expect(route?.loadPlugins).toBe(true);
|
||||
expect(typeof route?.loadPlugins).toBe("function");
|
||||
const shouldLoad = route?.loadPlugins as (argv: string[]) => boolean;
|
||||
expect(shouldLoad(["node", "openclaw", "status"])).toBe(true);
|
||||
expect(shouldLoad(["node", "openclaw", "status", "--json"])).toBe(false);
|
||||
});
|
||||
|
||||
it("matches health route and preloads plugins only for text output", () => {
|
||||
|
||||
Reference in New Issue
Block a user