@@ -225,7 +225,6 @@ describe('Copilot Chat API Route', () => {
225225 streamToolCalls : true ,
226226 mode : 'agent' ,
227227 depth : 0 ,
228- origin : 'http://localhost:3000' ,
229228 } ) ,
230229 } )
231230 )
@@ -288,7 +287,6 @@ describe('Copilot Chat API Route', () => {
288287 streamToolCalls : true ,
289288 mode : 'agent' ,
290289 depth : 0 ,
291- origin : 'http://localhost:3000' ,
292290 } ) ,
293291 } )
294292 )
@@ -298,7 +296,6 @@ describe('Copilot Chat API Route', () => {
298296 const authMocks = mockAuth ( )
299297 authMocks . setAuthenticated ( )
300298
301- // Mock new chat creation
302299 const newChat = {
303300 id : 'chat-123' ,
304301 userId : 'user-123' ,
@@ -307,8 +304,6 @@ describe('Copilot Chat API Route', () => {
307304 }
308305 mockReturning . mockResolvedValue ( [ newChat ] )
309306
310- // Mock sim agent response
311-
312307 ; ( global . fetch as any ) . mockResolvedValue ( {
313308 ok : true ,
314309 body : new ReadableStream ( {
@@ -343,7 +338,6 @@ describe('Copilot Chat API Route', () => {
343338 streamToolCalls : true ,
344339 mode : 'agent' ,
345340 depth : 0 ,
346- origin : 'http://localhost:3000' ,
347341 } ) ,
348342 } )
349343 )
@@ -353,11 +347,8 @@ describe('Copilot Chat API Route', () => {
353347 const authMocks = mockAuth ( )
354348 authMocks . setAuthenticated ( )
355349
356- // Mock new chat creation
357350 mockReturning . mockResolvedValue ( [ { id : 'chat-123' , messages : [ ] } ] )
358351
359- // Mock sim agent error
360-
361352 ; ( global . fetch as any ) . mockResolvedValue ( {
362353 ok : false ,
363354 status : 500 ,
@@ -403,11 +394,8 @@ describe('Copilot Chat API Route', () => {
403394 const authMocks = mockAuth ( )
404395 authMocks . setAuthenticated ( )
405396
406- // Mock new chat creation
407397 mockReturning . mockResolvedValue ( [ { id : 'chat-123' , messages : [ ] } ] )
408398
409- // Mock sim agent response
410-
411399 ; ( global . fetch as any ) . mockResolvedValue ( {
412400 ok : true ,
413401 body : new ReadableStream ( {
@@ -438,7 +426,6 @@ describe('Copilot Chat API Route', () => {
438426 streamToolCalls : true ,
439427 mode : 'ask' ,
440428 depth : 0 ,
441- origin : 'http://localhost:3000' ,
442429 } ) ,
443430 } )
444431 )
0 commit comments