@@ -44,7 +44,13 @@ suite('getInterpreterInfo()', () => {
4444 deps
4545 // Checking the args is the key point of this test.
4646 . setup ( ( d ) => d . shellExec ( cmd , 15000 ) )
47- . returns ( ( ) => Promise . resolve ( { stdout : JSON . stringify ( json ) } ) ) ;
47+ . returns ( ( ) =>
48+ Promise . resolve ( {
49+ stdout : `>>>JSON
50+ ${ JSON . stringify ( json ) }
51+ <<<JSON` ,
52+ } ) ,
53+ ) ;
4854 const shellExec = async ( c : string , t : number ) => deps . object . shellExec ( c , t ) ;
4955
5056 await getInterpreterInfo ( python , shellExec ) ;
@@ -64,7 +70,13 @@ suite('getInterpreterInfo()', () => {
6470 deps
6571 // Checking the args is the key point of this test.
6672 . setup ( ( d ) => d . shellExec ( cmd , 15000 ) )
67- . returns ( ( ) => Promise . resolve ( { stdout : JSON . stringify ( json ) } ) ) ;
73+ . returns ( ( ) =>
74+ Promise . resolve ( {
75+ stdout : `>>>JSON
76+ ${ JSON . stringify ( json ) }
77+ <<<JSON` ,
78+ } ) ,
79+ ) ;
6880 const shellExec = async ( c : string , t : number ) => deps . object . shellExec ( c , t ) ;
6981
7082 await getInterpreterInfo ( _python , shellExec ) ;
@@ -84,7 +96,13 @@ suite('getInterpreterInfo()', () => {
8496 deps
8597 // Checking the args is the key point of this test.
8698 . setup ( ( d ) => d . shellExec ( cmd , 15000 ) )
87- . returns ( ( ) => Promise . resolve ( { stdout : JSON . stringify ( json ) } ) ) ;
99+ . returns ( ( ) =>
100+ Promise . resolve ( {
101+ stdout : `>>>JSON
102+ ${ JSON . stringify ( json ) }
103+ <<<JSON` ,
104+ } ) ,
105+ ) ;
88106 const shellExec = async ( c : string , t : number ) => deps . object . shellExec ( c , t ) ;
89107
90108 await getInterpreterInfo ( _python , shellExec ) ;
@@ -109,7 +127,13 @@ suite('getInterpreterInfo()', () => {
109127 deps
110128 // We check the args in other tests.
111129 . setup ( ( d ) => d . shellExec ( TypeMoqIt . isAny ( ) , TypeMoqIt . isAny ( ) ) )
112- . returns ( ( ) => Promise . resolve ( { stdout : JSON . stringify ( json ) } ) ) ;
130+ . returns ( ( ) =>
131+ Promise . resolve ( {
132+ stdout : `>>>JSON
133+ ${ JSON . stringify ( json ) }
134+ <<<JSON` ,
135+ } ) ,
136+ ) ;
113137 const shellExec = async ( c : string , t : number ) => deps . object . shellExec ( c , t ) ;
114138
115139 const result = await getInterpreterInfo ( python , shellExec ) ;
@@ -135,7 +159,13 @@ suite('getInterpreterInfo()', () => {
135159 deps
136160 // We check the args in other tests.
137161 . setup ( ( d ) => d . shellExec ( TypeMoqIt . isAny ( ) , TypeMoqIt . isAny ( ) ) )
138- . returns ( ( ) => Promise . resolve ( { stdout : JSON . stringify ( json ) } ) ) ;
162+ . returns ( ( ) =>
163+ Promise . resolve ( {
164+ stdout : `>>>JSON
165+ ${ JSON . stringify ( json ) }
166+ <<<JSON` ,
167+ } ) ,
168+ ) ;
139169 const shellExec = async ( c : string , t : number ) => deps . object . shellExec ( c , t ) ;
140170
141171 const result = await getInterpreterInfo ( python , shellExec ) ;
@@ -161,7 +191,13 @@ suite('getInterpreterInfo()', () => {
161191 deps
162192 // We check the args in other tests.
163193 . setup ( ( d ) => d . shellExec ( TypeMoqIt . isAny ( ) , TypeMoqIt . isAny ( ) ) )
164- . returns ( ( ) => Promise . resolve ( { stdout : JSON . stringify ( json ) } ) ) ;
194+ . returns ( ( ) =>
195+ Promise . resolve ( {
196+ stdout : `>>>JSON
197+ ${ JSON . stringify ( json ) }
198+ <<<JSON` ,
199+ } ) ,
200+ ) ;
165201 const shellExec = async ( c : string , t : number ) => deps . object . shellExec ( c , t ) ;
166202
167203 const result = await getInterpreterInfo ( python , shellExec ) ;
0 commit comments