This commit is contained in:
Adria Navarro 2025-05-09 11:16:43 +02:00
parent 20d16d01a7
commit c8c297a1bf
1 changed files with 2 additions and 3 deletions

View File

@ -51,7 +51,7 @@ describe("cron trigger", () => {
})
it("should fail if the cron expression is invalid", async () => {
await createAutomationBuilder(config)
const { automation } = await createAutomationBuilder(config)
.onCron({ cron: "* * * * * *" })
.serverLog({
text: "Hello, world!",
@ -61,8 +61,7 @@ describe("cron trigger", () => {
await config.api.application.publish(config.getAppId(), {
status: 500,
body: {
message:
'Deployment Failed: Invalid automation CRON "* * * * * *" - Expected 5 values, but got 6.',
message: `Deployment Failed: Failed to enable CRON trigger for automation "${automation.name}": Invalid automation CRON "* * * * * *" - Expected 5 values, but got 6.`,
},
})
})