Skip to content

Commit

Permalink
switch to use path.join
Browse files Browse the repository at this point in the history
  • Loading branch information
eleanorjboyd committed Nov 12, 2024
1 parent f79e512 commit fc9dc6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/unittest/adapter/factory.unit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,9 +292,9 @@ suite('Debugging - Adapter Factory', () => {
assert.deepStrictEqual(descriptor, debugExecutable);
});
test('Add quotes to interpreter path with spaces', async () => {
const customAdapterPath = 'custom/debug/adapter/customAdapterPath';
const customAdapterPath = path.join('custom', 'debug', 'adapter', 'customAdapterPath');
const session = createSession({ debugAdapterPath: customAdapterPath });
const interpreterPathSpaces = '/path/to/python interpreter with spaces';
const interpreterPathSpaces = path.join('/path', 'to', 'python interpreter with spaces');
const interpreterPathSpacesQuoted = `"${interpreterPathSpaces}"`;
const debugExecutable = new DebugAdapterExecutable(interpreterPathSpacesQuoted, [customAdapterPath]);

Expand Down

0 comments on commit fc9dc6c

Please sign in to comment.