Skip to content

Commit 3849e91

Browse files
authored
fix test for windows (#1267)
1 parent 3fa686c commit 3849e91

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/commands/support.test.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import * as assert from "assert";
2+
import { normalize } from "path";
23
import * as sinon from "sinon";
34
import { Uri } from "vscode";
45
import * as logging from "../logging";
@@ -48,6 +49,7 @@ describe("commands/support.ts", function () {
4849
it("sidecarLogFileUri() should return the correct URI for the sidecar log file", function () {
4950
const logFileUri: Uri = sidecarLogFileUri();
5051

51-
assert.strictEqual(logFileUri.path, SIDECAR_LOGFILE_PATH);
52+
// normalized to adjust slashes for Windows vs Unix
53+
assert.strictEqual(logFileUri.path, Uri.file(normalize(SIDECAR_LOGFILE_PATH)).path);
5254
});
5355
});

0 commit comments

Comments
 (0)