@@ -213,12 +213,7 @@ describe("executeCommand", () => {
213213
214214 // Verify
215215 expect ( rejected ) . toBe ( false )
216- expect ( TerminalRegistry . getOrCreateTerminal ) . toHaveBeenCalledWith (
217- customCwd ,
218- true , // customCwd provided
219- mockTask . taskId ,
220- "vscode" ,
221- )
216+ expect ( TerminalRegistry . getOrCreateTerminal ) . toHaveBeenCalledWith ( customCwd , mockTask . taskId , "vscode" )
222217 expect ( result ) . toContain ( `within working directory '${ customCwd } '` )
223218 } )
224219
@@ -248,12 +243,7 @@ describe("executeCommand", () => {
248243
249244 // Verify
250245 expect ( rejected ) . toBe ( false )
251- expect ( TerminalRegistry . getOrCreateTerminal ) . toHaveBeenCalledWith (
252- resolvedCwd ,
253- true , // customCwd provided
254- mockTask . taskId ,
255- "vscode" ,
256- )
246+ expect ( TerminalRegistry . getOrCreateTerminal ) . toHaveBeenCalledWith ( resolvedCwd , mockTask . taskId , "vscode" )
257247 expect ( result ) . toContain ( `within working directory '${ resolvedCwd . toPosix ( ) } '` )
258248 } )
259249
@@ -302,12 +292,7 @@ describe("executeCommand", () => {
302292 await executeCommand ( mockTask , options )
303293
304294 // Verify
305- expect ( TerminalRegistry . getOrCreateTerminal ) . toHaveBeenCalledWith (
306- mockTask . cwd ,
307- false , // no customCwd
308- mockTask . taskId ,
309- "vscode" ,
310- )
295+ expect ( TerminalRegistry . getOrCreateTerminal ) . toHaveBeenCalledWith ( mockTask . cwd , mockTask . taskId , "vscode" )
311296 } )
312297
313298 it ( "should use execa provider when shell integration is disabled" , async ( ) => {
@@ -330,12 +315,7 @@ describe("executeCommand", () => {
330315 await executeCommand ( mockTask , options )
331316
332317 // Verify
333- expect ( TerminalRegistry . getOrCreateTerminal ) . toHaveBeenCalledWith (
334- mockTask . cwd ,
335- false , // no customCwd
336- mockTask . taskId ,
337- "execa" ,
338- )
318+ expect ( TerminalRegistry . getOrCreateTerminal ) . toHaveBeenCalledWith ( mockTask . cwd , mockTask . taskId , "execa" )
339319 } )
340320 } )
341321
0 commit comments