test: clarify cron regression job assertion

This commit is contained in:
Peter Steinberger
2026-05-08 10:41:24 +01:00
parent 3299e10ee9
commit 3cf101ff8b

View File

@@ -213,7 +213,8 @@ describe("Cron issue regressions", () => {
const cron = await startCronForStore({ storePath: store.storePath, cronEnabled: false });
const listed = await cron.list();
expect(listed.some((job) => job.id === "missing-enabled-update")).toBe(true);
const listedJobIds = listed.map((job) => job.id);
expect(listedJobIds).toContain("missing-enabled-update");
const updated = await cron.update("missing-enabled-update", {
schedule: { kind: "cron", expr: "0 */3 * * *", tz: "UTC" },