Skip to content

Commit

Permalink
fix windows path casing in test case
Browse files Browse the repository at this point in the history
  • Loading branch information
WebFreak001 committed Sep 22, 2024
1 parent 3ee46fa commit 3c8c798
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/test/suite/it.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down Expand Up @@ -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"
);
Expand Down

0 comments on commit 3c8c798

Please sign in to comment.