Skip to content

Commit 6eb0ac3

Browse files
committed
Fix lint error.
1 parent 8ade316 commit 6eb0ac3

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

src/test/pythonEnvironments/base/locators/lowLevel/activestateLocator.unit.test.ts

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import { ExecutionResult } from '../../../../../client/common/process/types';
1414
import { createBasicEnv } from '../../common';
1515
import * as platform from '../../../../../client/common/utils/platform';
1616
import { ActiveState } from '../../../../../client/pythonEnvironments/common/environmentManagers/activestate';
17+
import { replaceAll } from '../../../../../client/common/stringUtils';
1718

1819
suite('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

Comments
 (0)