Skip to content

Commit 5f23991

Browse files
committed
test(mcp): expect trigger surfaces by default in the tools bridge
The MCP tools bridge mirrors the scheduler gate, so an absent cron.triggers config now advertises the trigger surface. Explicit false still narrows it and explicit true still widens it; both assertions are unchanged.
1 parent 65930a4 commit 5f23991

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/mcp/openclaw-tools-serve.test.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ describe("OpenClaw tools MCP server", () => {
4747
};
4848

4949
expect(jobKeys({ cron: { triggers: { enabled: false } } })).not.toContain("trigger");
50-
expect(jobKeys({ cron: {} })).not.toContain("trigger");
50+
// Absent config means enabled; only an explicit false narrows the surface.
51+
expect(jobKeys({ cron: {} })).toContain("trigger");
5152
expect(jobKeys({ cron: { triggers: { enabled: true } } })).toContain("trigger");
5253
});
5354

0 commit comments

Comments
 (0)