@@ -14,6 +14,7 @@ import { ExecutionResult } from '../../../../../client/common/process/types';
1414import { createBasicEnv } from '../../common' ;
1515import * as platform from '../../../../../client/common/utils/platform' ;
1616import { ActiveState } from '../../../../../client/pythonEnvironments/common/environmentManagers/activestate' ;
17+ import { replaceAll } from '../../../../../client/common/stringUtils' ;
1718
1819suite ( 'ActiveState Locator' , ( ) => {
1920 const testActiveStateDir = path . join ( TEST_LAYOUT_ROOT , 'activestate' ) ;
@@ -45,14 +46,15 @@ suite('ActiveState Locator', () => {
4546 sinon . stub ( externalDependencies , 'shellExecute' ) . callsFake ( ( command : string ) => {
4647 if ( command === 'state projects -o editor' ) {
4748 return Promise . resolve < ExecutionResult < string > > ( {
48- stdout : `[{"name":"test","organization":"test-org","local_checkouts":["does-not-matter"],"executables":["${ path
49- . join ( testActiveStateDir , 'c09080d1' , 'exec' )
50- . replaceAll (
51- '\\' ,
52- '\\\\' ,
53- ) } "]},{"name":"test2","organization":"test-org","local_checkouts":["does-not-matter2"],"executables":["${ path
54- . join ( testActiveStateDir , '2af6390a' , 'exec' )
55- . replaceAll ( '\\' , '\\\\' ) } "]}]\n\0`,
49+ stdout : `[{"name":"test","organization":"test-org","local_checkouts":["does-not-matter"],"executables":["${ replaceAll (
50+ path . join ( testActiveStateDir , 'c09080d1' , 'exec' ) ,
51+ '\\' ,
52+ '\\\\' ,
53+ ) } "]},{"name":"test2","organization":"test-org","local_checkouts":["does-not-matter2"],"executables":["${ replaceAll (
54+ path . join ( testActiveStateDir , '2af6390a' , 'exec' ) ,
55+ '\\' ,
56+ '\\\\' ,
57+ ) } "]}]\n\0`,
5658 } ) ;
5759 }
5860 return Promise . reject ( new Error ( 'Command failed' ) ) ;
0 commit comments