test: clarify cron cli list output · openclaw/openclaw@604c73a
steipete
·
2026-05-08
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -63,8 +63,7 @@ describe("printCronList", () => {
|
63 | 63 | // sessionTarget is intentionally omitted to simulate the bug |
64 | 64 | }); |
65 | 65 | |
66 | | -// This should not throw "Cannot read properties of undefined (reading 'trim')" |
67 | | -expect(() => printCronList([jobWithUndefinedTarget], runtime)).not.toThrow(); |
| 66 | +printCronList([jobWithUndefinedTarget], runtime); |
68 | 67 | |
69 | 68 | // Verify output contains the job |
70 | 69 | expect(logs.length).toBeGreaterThan(1); |
@@ -79,7 +78,7 @@ describe("printCronList", () => {
|
79 | 78 | sessionTarget: "isolated", |
80 | 79 | }); |
81 | 80 | |
82 | | -expect(() => printCronList([jobWithTarget], runtime)).not.toThrow(); |
| 81 | +printCronList([jobWithTarget], runtime); |
83 | 82 | expectLogsToInclude(logs, "isolated"); |
84 | 83 | }); |
85 | 84 | |
@@ -95,7 +94,7 @@ describe("printCronList", () => {
|
95 | 94 | state: undefined, |
96 | 95 | } as unknown as CronJob; |
97 | 96 | |
98 | | -expect(() => printCronList([malformedJob], runtime)).not.toThrow(); |
| 97 | +printCronList([malformedJob], runtime); |
99 | 98 | expectLogsToInclude(logs, "malformed-job"); |
100 | 99 | }); |
101 | 100 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。