From 26082593a5297088b04a95d78fb10d00c4532117 Mon Sep 17 00:00:00 2001 From: Don Jayamanne Date: Tue, 5 Jun 2018 00:45:52 +0200 Subject: [PATCH] Fix failing prospector path on Windows (corss plat fix for failing test) (#1862) --- src/test/linters/lint.args.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/linters/lint.args.test.ts b/src/test/linters/lint.args.test.ts index 98a255bf5415..58421ab1f9bc 100644 --- a/src/test/linters/lint.args.test.ts +++ b/src/test/linters/lint.args.test.ts @@ -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); });