Skip to content

Commit ecb35d4

Browse files
committed
fix windows path casing in test case
1 parent b3145cb commit ecb35d4

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/test/suite/it.test.ts

+8-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ suite("Integration Tests", () => {
1212
// sanity test that we have the correct window open
1313
let workspaces = vscode.workspace.workspaceFolders;
1414
assert.strictEqual(workspaces?.length, 1);
15-
assert.strictEqual(workspaces[0].uri.fsPath, process.env["PROJECT_DIR"]);
15+
assert.strictEqual(
16+
workspaces[0].uri.fsPath.toLowerCase(),
17+
process.env["PROJECT_DIR"]!.toLowerCase()
18+
);
1619
let workspace = workspaces[0];
1720

1821
test("check code-d installed", async () => {
@@ -44,7 +47,10 @@ suite("Integration Tests", () => {
4447
recipe,
4548
new vscode.Position(2, 3),
4649
new vscode.CompletionList([
47-
new vscode.CompletionItem("dependency", vscode.CompletionItemKind.Field),
50+
new vscode.CompletionItem(
51+
"dependency",
52+
vscode.CompletionItemKind.Field
53+
),
4854
]),
4955
"contains"
5056
);

0 commit comments

Comments
 (0)