Skip to content

Commit

Permalink
Fix failing prospector path on Windows (corss plat fix for failing te…
Browse files Browse the repository at this point in the history
…st) (#1862)
  • Loading branch information
DonJayamanne committed Jun 4, 2018
1 parent 48036ff commit 2608259
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/linters/lint.args.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ suite('Linting - Arguments', () => {
});
test('Prospector', async () => {
const linter = new Prospector(outputChannel.object, serviceContainer);
const expectedPath = workspaceUri ? path.relative(workspaceUri, fileUri.fsPath) : path.basename(fileUri.fsPath);
const expectedPath = workspaceUri ? fileUri.fsPath.substring(workspaceUri.length + 2) : path.basename(fileUri.fsPath);
const expectedArgs = ['--absolute-paths', '--output-format=json', expectedPath];
await testLinter(linter, expectedArgs);
});
Expand Down

0 comments on commit 2608259

Please sign in to comment.