@@ -20,7 +20,7 @@ test("normalizes Telegram and gateway actions", () => {
2020 } ,
2121 { type : "patchConfig" , atMs : 750 , patch : { channels : { telegram : { historyLimit : 9 } } } } ,
2222 { type : "systemEvent" , atMs : 900 , text : "heartbeat proof" } ,
23- { type : "cron" , atMs : 950 , message : "deliver the schedule" } ,
23+ { type : "cron" , atMs : 950 , message : "deliver the schedule" , bestEffort : true } ,
2424 { type : "command" , atMs : 975 , argv : [ "node" , "--version" ] , cwd : "repo" } ,
2525 { type : "telegramApiHold" , atMs : 980 , method : "sendMessage" , skip : 1 } ,
2626 { type : "telegramApiWaitHeld" , atMs : 990 , method : "sendMessage" } ,
@@ -48,7 +48,7 @@ test("normalizes Telegram and gateway actions", () => {
4848 patch : { channels : { telegram : { historyLimit : 9 } } } ,
4949 } ,
5050 { type : "systemEvent" , atMs : 900 , text : "heartbeat proof" } ,
51- { type : "cron" , atMs : 950 , message : "deliver the schedule" } ,
51+ { type : "cron" , atMs : 950 , message : "deliver the schedule" , bestEffort : true } ,
5252 {
5353 type : "command" ,
5454 atMs : 975 ,
@@ -113,6 +113,10 @@ test("rejects fields and action types outside the closed schema", () => {
113113 ( ) => parseScenario ( { actions : [ { type : "restartGateway" , atMs : - 1 } ] } ) ,
114114 / a t M s m u s t b e a n o n - n e g a t i v e i n t e g e r / u,
115115 ) ;
116+ assert . throws (
117+ ( ) => parseScenario ( { actions : [ { type : "cron" , message : "deliver" , bestEffort : "yes" } ] } ) ,
118+ / b e s t E f f o r t m u s t b e a b o o l e a n / u,
119+ ) ;
116120} ) ;
117121
118122test ( "validates the recorder-ready artifact as a closed shape" , ( ) => {
0 commit comments