-
Notifications
You must be signed in to change notification settings - Fork 510
/
Copy pathpaths.test.ts
27 lines (22 loc) · 998 Bytes
/
paths.test.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import * as assert from "assert";
import * as fs from "fs";
import * as path from "path";
import * as vscode from "vscode";
import utils = require("../utils");
describe("Path assumptions", function () {
before(utils.ensureEditorServicesIsConnected);
// TODO: This is skipped because it intereferes with other tests. Either
// need to find a way to close the opened folder via a Code API, or find
// another way to test this.
it.skip("Opens the examples folder at the expected path", async function () {
assert(await vscode.commands.executeCommand("PowerShell.OpenExamplesFolder"));
});
it("Creates the session folder at the correct path", function () {
assert(fs.existsSync(path.resolve(utils.rootPath, "sessions")));
});
it("Creates the log folder at the correct path", function () {
assert(fs.existsSync(path.resolve(utils.rootPath, "logs")));
});
});