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