microsoft/vscode-react-native

Public

mirrored fromhttps://github.com/microsoft/vscode-react-nativeAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
147d9cc549da9c4c4297f65e799484b78fe8de80

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

src/test/reactDirManager.test.ts

17lines · modecode

1// The module "assert" provides assertion methods from node
2import * as assert from "assert";
3import * as path from "path";
4
5import * as reactDirManager from "../extension/reactDirManager";
6
7suite("reactDirManager.ts", () => {
8 suite("ReactDirPath", function () {
9 test("Should end with the correct path to the react folder", () => {
10 let reactPath = reactDirManager.ReactDirManager.ReactDirPath;
11
12 assert.strictEqual(".react", path.basename(reactPath));
13 reactPath = path.dirname(reactPath);
14 assert.strictEqual(".vscode", path.basename(reactPath));
15 });
16 });
17});