From 3c8c79898c828e4c8b583de018e9be7867f3da23 Mon Sep 17 00:00:00 2001 From: WebFreak001 Date: Sun, 22 Sep 2024 01:21:39 +0200 Subject: [PATCH] fix windows path casing in test case --- src/test/suite/it.test.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/test/suite/it.test.ts b/src/test/suite/it.test.ts index f6fe557..a182913 100644 --- a/src/test/suite/it.test.ts +++ b/src/test/suite/it.test.ts @@ -12,7 +12,10 @@ suite("Integration Tests", () => { // sanity test that we have the correct window open let workspaces = vscode.workspace.workspaceFolders; assert.strictEqual(workspaces?.length, 1); - assert.strictEqual(workspaces[0].uri.fsPath, process.env["PROJECT_DIR"]); + assert.strictEqual( + workspaces[0].uri.fsPath.toLowerCase(), + process.env["PROJECT_DIR"]!.toLowerCase() + ); let workspace = workspaces[0]; test("check code-d installed", async () => { @@ -44,7 +47,10 @@ suite("Integration Tests", () => { recipe, new vscode.Position(2, 3), new vscode.CompletionList([ - new vscode.CompletionItem("dependency", vscode.CompletionItemKind.Field), + new vscode.CompletionItem( + "dependency", + vscode.CompletionItemKind.Field + ), ]), "contains" );