@@ -57,6 +57,7 @@ describe('Scheduled Workflow Execution API Route', () => {
5757 not : vi . fn ( ( condition ) => ( { type : 'not' , condition } ) ) ,
5858 isNull : vi . fn ( ( field ) => ( { type : 'isNull' , field } ) ) ,
5959 or : vi . fn ( ( ...conditions ) => ( { type : 'or' , conditions } ) ) ,
60+ sql : vi . fn ( ( strings , ...values ) => ( { type : 'sql' , strings, values } ) ) ,
6061 } ) )
6162
6263 vi . doMock ( '@sim/db' , ( ) => {
@@ -92,6 +93,17 @@ describe('Scheduled Workflow Execution API Route', () => {
9293 status : 'status' ,
9394 nextRunAt : 'nextRunAt' ,
9495 lastQueuedAt : 'lastQueuedAt' ,
96+ deploymentVersionId : 'deploymentVersionId' ,
97+ } ,
98+ workflowDeploymentVersion : {
99+ id : 'id' ,
100+ workflowId : 'workflowId' ,
101+ isActive : 'isActive' ,
102+ } ,
103+ workflow : {
104+ id : 'id' ,
105+ userId : 'userId' ,
106+ workspaceId : 'workspaceId' ,
95107 } ,
96108 }
97109 } )
@@ -134,6 +146,7 @@ describe('Scheduled Workflow Execution API Route', () => {
134146 not : vi . fn ( ( condition ) => ( { type : 'not' , condition } ) ) ,
135147 isNull : vi . fn ( ( field ) => ( { type : 'isNull' , field } ) ) ,
136148 or : vi . fn ( ( ...conditions ) => ( { type : 'or' , conditions } ) ) ,
149+ sql : vi . fn ( ( strings , ...values ) => ( { type : 'sql' , strings, values } ) ) ,
137150 } ) )
138151
139152 vi . doMock ( '@sim/db' , ( ) => {
@@ -169,6 +182,17 @@ describe('Scheduled Workflow Execution API Route', () => {
169182 status : 'status' ,
170183 nextRunAt : 'nextRunAt' ,
171184 lastQueuedAt : 'lastQueuedAt' ,
185+ deploymentVersionId : 'deploymentVersionId' ,
186+ } ,
187+ workflowDeploymentVersion : {
188+ id : 'id' ,
189+ workflowId : 'workflowId' ,
190+ isActive : 'isActive' ,
191+ } ,
192+ workflow : {
193+ id : 'id' ,
194+ userId : 'userId' ,
195+ workspaceId : 'workspaceId' ,
172196 } ,
173197 }
174198 } )
@@ -206,6 +230,7 @@ describe('Scheduled Workflow Execution API Route', () => {
206230 not : vi . fn ( ( condition ) => ( { type : 'not' , condition } ) ) ,
207231 isNull : vi . fn ( ( field ) => ( { type : 'isNull' , field } ) ) ,
208232 or : vi . fn ( ( ...conditions ) => ( { type : 'or' , conditions } ) ) ,
233+ sql : vi . fn ( ( strings , ...values ) => ( { type : 'sql' , strings, values } ) ) ,
209234 } ) )
210235
211236 vi . doMock ( '@sim/db' , ( ) => {
@@ -228,6 +253,17 @@ describe('Scheduled Workflow Execution API Route', () => {
228253 status : 'status' ,
229254 nextRunAt : 'nextRunAt' ,
230255 lastQueuedAt : 'lastQueuedAt' ,
256+ deploymentVersionId : 'deploymentVersionId' ,
257+ } ,
258+ workflowDeploymentVersion : {
259+ id : 'id' ,
260+ workflowId : 'workflowId' ,
261+ isActive : 'isActive' ,
262+ } ,
263+ workflow : {
264+ id : 'id' ,
265+ userId : 'userId' ,
266+ workspaceId : 'workspaceId' ,
231267 } ,
232268 }
233269 } )
@@ -265,6 +301,7 @@ describe('Scheduled Workflow Execution API Route', () => {
265301 not : vi . fn ( ( condition ) => ( { type : 'not' , condition } ) ) ,
266302 isNull : vi . fn ( ( field ) => ( { type : 'isNull' , field } ) ) ,
267303 or : vi . fn ( ( ...conditions ) => ( { type : 'or' , conditions } ) ) ,
304+ sql : vi . fn ( ( strings , ...values ) => ( { type : 'sql' , strings, values } ) ) ,
268305 } ) )
269306
270307 vi . doMock ( '@sim/db' , ( ) => {
@@ -310,6 +347,17 @@ describe('Scheduled Workflow Execution API Route', () => {
310347 status : 'status' ,
311348 nextRunAt : 'nextRunAt' ,
312349 lastQueuedAt : 'lastQueuedAt' ,
350+ deploymentVersionId : 'deploymentVersionId' ,
351+ } ,
352+ workflowDeploymentVersion : {
353+ id : 'id' ,
354+ workflowId : 'workflowId' ,
355+ isActive : 'isActive' ,
356+ } ,
357+ workflow : {
358+ id : 'id' ,
359+ userId : 'userId' ,
360+ workspaceId : 'workspaceId' ,
313361 } ,
314362 }
315363 } )
0 commit comments