Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix(cron): update error message format for duplicate cron job registration

Victor Hugo dos Santos59b045a78f92
diff --git a/backend/src/lib/cron/cron-job.test.ts b/backend/src/lib/cron/cron-job.test.ts
index 2933f93522..438bdf1b10 100644
--- a/backend/src/lib/cron/cron-job.test.ts
+++ b/backend/src/lib/cron/cron-job.test.ts
@@ -74,7 +74,7 @@ describe("register", () => {
const { register } = makeFactory();
register({ name: "x", pattern: "0 0 * * *", handler: vi.fn(), runHashTtlS: 3600 });
expect(() => register({ name: "x", pattern: "0 0 * * *", handler: vi.fn(), runHashTtlS: 3600 })).toThrow(
- /already registered/
+ "already registered"
);
});