Skip to content

Commit a968aab

Browse files
committed
Remove explicit Windows test
This should be covered by running the general test suite in CI (on windows-latest)
1 parent 1e1594b commit a968aab

1 file changed

Lines changed: 0 additions & 42 deletions

File tree

extensions/ql-vscode/test/vscode-tests/cli-integration/skeleton-query-wizard.test.ts

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -349,48 +349,6 @@ describe("SkeletonQueryWizard", () => {
349349
expect(wizard.getFirstStoragePath()).toEqual("vscode-codeql-starter");
350350
});
351351
});
352-
353-
describe("if user is on windows", () => {
354-
let originalPlatform: string;
355-
356-
beforeEach(() => {
357-
originalPlatform = process.platform;
358-
Object.defineProperty(process, "platform", {
359-
value: "win32",
360-
});
361-
});
362-
363-
afterEach(() => {
364-
originalPlatform = process.platform;
365-
Object.defineProperty(process, "platform", {
366-
value: originalPlatform,
367-
});
368-
});
369-
370-
it("should return the first workspace folder", async () => {
371-
jest.spyOn(workspace, "workspaceFolders", "get").mockReturnValue([
372-
{
373-
name: "codespaces-codeql",
374-
uri: { fsPath: "codespaces-codeql\\codeql-custom-queries-cpp" },
375-
},
376-
] as WorkspaceFolder[]);
377-
378-
Object.defineProperty(process, "platform", {
379-
value: "win32",
380-
});
381-
382-
wizard = new SkeletonQueryWizard(
383-
mockCli,
384-
jest.fn(),
385-
credentials,
386-
extLogger,
387-
mockDatabaseManager,
388-
token,
389-
);
390-
391-
expect(wizard.getFirstStoragePath()).toEqual("codespaces-codeql");
392-
});
393-
});
394352
});
395353

396354
describe("findDatabaseItemByNwo", () => {

0 commit comments

Comments
 (0)