Skip to content

Commit 2608259

Browse files
authored
Fix failing prospector path on Windows (corss plat fix for failing test) (#1862)
1 parent 48036ff commit 2608259

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/linters/lint.args.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ suite('Linting - Arguments', () => {
122122
});
123123
test('Prospector', async () => {
124124
const linter = new Prospector(outputChannel.object, serviceContainer);
125-
const expectedPath = workspaceUri ? path.relative(workspaceUri, fileUri.fsPath) : path.basename(fileUri.fsPath);
125+
const expectedPath = workspaceUri ? fileUri.fsPath.substring(workspaceUri.length + 2) : path.basename(fileUri.fsPath);
126126
const expectedArgs = ['--absolute-paths', '--output-format=json', expectedPath];
127127
await testLinter(linter, expectedArgs);
128128
});

0 commit comments

Comments
 (0)