@@ -410,14 +410,7 @@ describe('Chat Identifier API Route', () => {
410410
411411 expect ( createStreamingResponse ) . toHaveBeenCalledWith (
412412 expect . objectContaining ( {
413- workflow : expect . objectContaining ( {
414- id : 'workflow-id' ,
415- userId : 'user-id' ,
416- } ) ,
417- input : expect . objectContaining ( {
418- input : 'Hello world' ,
419- conversationId : 'conv-123' ,
420- } ) ,
413+ executeFn : expect . any ( Function ) ,
421414 streamConfig : expect . objectContaining ( {
422415 isSecureMode : true ,
423416 workflowTriggerType : 'chat' ,
@@ -494,9 +487,9 @@ describe('Chat Identifier API Route', () => {
494487
495488 expect ( createStreamingResponse ) . toHaveBeenCalledWith (
496489 expect . objectContaining ( {
497- input : expect . objectContaining ( {
498- input : 'Hello world' ,
499- conversationId : 'test-conversation-123 ' ,
490+ executeFn : expect . any ( Function ) ,
491+ streamConfig : expect . objectContaining ( {
492+ workflowTriggerType : 'chat ' ,
500493 } ) ,
501494 } )
502495 )
@@ -510,9 +503,7 @@ describe('Chat Identifier API Route', () => {
510503
511504 expect ( createStreamingResponse ) . toHaveBeenCalledWith (
512505 expect . objectContaining ( {
513- input : expect . objectContaining ( {
514- input : 'Hello world' ,
515- } ) ,
506+ executeFn : expect . any ( Function ) ,
516507 } )
517508 )
518509 } )
0 commit comments