@@ -508,7 +508,7 @@ describe("MistralHandler", () => {
508508 } )
509509 await handler . completePrompt ( "test prompt" , { abortSignal : controller . signal } )
510510 expect ( mockComplete ) . toHaveBeenCalledWith ( expect . objectContaining ( { model : expect . any ( String ) } ) , {
511- signal : controller . signal ,
511+ fetchOptions : { signal : controller . signal } ,
512512 } )
513513 } )
514514
@@ -528,8 +528,8 @@ describe("MistralHandler", () => {
528528 } )
529529 await handler . completePrompt ( "test prompt" , { abortSignal : controller . signal , timeoutMs : 5000 } )
530530 expect ( mockComplete ) . toHaveBeenCalledWith ( expect . objectContaining ( { model : expect . any ( String ) } ) , {
531- signal : controller . signal ,
532- timeout : 5000 ,
531+ fetchOptions : { signal : controller . signal } ,
532+ timeoutMs : 5000 ,
533533 } )
534534 } )
535535
@@ -539,7 +539,7 @@ describe("MistralHandler", () => {
539539 } )
540540 await handler . completePrompt ( "test prompt" , { timeoutMs : 3000 } )
541541 expect ( mockComplete ) . toHaveBeenCalledWith ( expect . objectContaining ( { model : expect . any ( String ) } ) , {
542- timeout : 3000 ,
542+ timeoutMs : 3000 ,
543543 } )
544544 } )
545545
@@ -548,10 +548,9 @@ describe("MistralHandler", () => {
548548 choices : [ { message : { content : "response" } } ] ,
549549 } )
550550 await handler . completePrompt ( "test prompt" , { timeoutMs : 0 } )
551- expect ( mockComplete ) . toHaveBeenCalledWith (
552- expect . objectContaining ( { model : expect . any ( String ) } ) ,
553- undefined , // truthy check means 0 is falsy
554- )
551+ expect ( mockComplete ) . toHaveBeenCalledWith ( expect . objectContaining ( { model : expect . any ( String ) } ) , {
552+ timeoutMs : 0 ,
553+ } )
555554 } )
556555 } )
557556} )
0 commit comments