@@ -81,9 +81,9 @@ describe('runAgentStep - set_output tool', () => {
8181 spyOn ( liveUserInputs , 'setSessionConnected' ) . mockImplementation ( ( ) => { } )
8282
8383 spyOn ( websocketAction , 'requestFiles' ) . mockImplementation (
84- async ( ws : any , paths : string [ ] ) => {
84+ async ( params : { ws : any ; filePaths : string [ ] } ) => {
8585 const results : Record < string , string | null > = { }
86- paths . forEach ( ( p ) => {
86+ params . filePaths . forEach ( ( p ) => {
8787 if ( p === 'src/auth.ts' ) {
8888 results [ p ] = 'export function authenticate() { return true; }'
8989 } else if ( p === 'src/user.ts' ) {
@@ -97,10 +97,10 @@ describe('runAgentStep - set_output tool', () => {
9797 )
9898
9999 spyOn ( websocketAction , 'requestFile' ) . mockImplementation (
100- async ( ws : any , path : string ) => {
101- if ( path === 'src/auth.ts' ) {
100+ async ( params : { ws : any ; filePath : string } ) => {
101+ if ( params . filePath === 'src/auth.ts' ) {
102102 return 'export function authenticate() { return true; }'
103- } else if ( path === 'src/user.ts' ) {
103+ } else if ( params . filePath === 'src/user.ts' ) {
104104 return 'export interface User { id: string; name: string; }'
105105 }
106106 return null
@@ -365,9 +365,9 @@ describe('runAgentStep - set_output tool', () => {
365365
366366 // Mock requestFiles to return test file content
367367 spyOn ( websocketAction , 'requestFiles' ) . mockImplementation (
368- async ( ws : any , paths : string [ ] ) => {
368+ async ( params : { ws : any ; filePaths : string [ ] } ) => {
369369 const results : Record < string , string | null > = { }
370- paths . forEach ( ( p ) => {
370+ params . filePaths . forEach ( ( p ) => {
371371 if ( p === 'src/test.ts' ) {
372372 results [ p ] = 'export function testFunction() { return "test"; }'
373373 } else {
0 commit comments