mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-28 05:16:23 -06:00
test: narrow scheduled turn cron assertion
This commit is contained in:
@@ -538,7 +538,9 @@ describe("plugin scheduled turns", () => {
|
||||
const { name, schedule, ...stableCronAddBody } = getCronAddBody();
|
||||
expect(typeof name).toBe("string");
|
||||
expect(name.startsWith("plugin:loader-scheduler:agent:main:main:")).toBe(true);
|
||||
expect(schedule.kind).toBe("at");
|
||||
if (schedule.kind !== "at") {
|
||||
throw new Error(`Expected one-shot scheduled turn, got ${schedule.kind}`);
|
||||
}
|
||||
expect(typeof schedule.at).toBe("string");
|
||||
expect(stableCronAddBody).toEqual({
|
||||
enabled: true,
|
||||
|
||||
Reference in New Issue
Block a user