Skip to content

Commit fc9dc6c

Browse files
committed
switch to use path.join
1 parent f79e512 commit fc9dc6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/unittest/adapter/factory.unit.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -292,9 +292,9 @@ suite('Debugging - Adapter Factory', () => {
292292
assert.deepStrictEqual(descriptor, debugExecutable);
293293
});
294294
test('Add quotes to interpreter path with spaces', async () => {
295-
const customAdapterPath = 'custom/debug/adapter/customAdapterPath';
295+
const customAdapterPath = path.join('custom', 'debug', 'adapter', 'customAdapterPath');
296296
const session = createSession({ debugAdapterPath: customAdapterPath });
297-
const interpreterPathSpaces = '/path/to/python interpreter with spaces';
297+
const interpreterPathSpaces = path.join('/path', 'to', 'python interpreter with spaces');
298298
const interpreterPathSpacesQuoted = `"${interpreterPathSpaces}"`;
299299
const debugExecutable = new DebugAdapterExecutable(interpreterPathSpacesQuoted, [customAdapterPath]);
300300

0 commit comments

Comments
 (0)