microsoft/vscode-react-native

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
c764d5e2bcaf8e8de611998b26b56ffef0f1d583

Branches

Tags

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

Clone

HTTPS

Download ZIP

src/test/extension/reactDirManager.test.ts

22lines · modecode

1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the MIT license. See LICENSE file in the project root for details.
3
4// The module "assert" provides assertion methods from node
5import * as assert from "assert";
6import * as path from "path";
7
8import * as reactDirManager from "../../extension/reactDirManager";
9
10suite("reactDirManager.ts", () => {
11 suite("extensionContext", function() {
12 suite("ReactDirPath", function() {
13 test("Should end with the correct path to the react folder", () => {
14 let reactPath = reactDirManager.ReactDirManager.ReactDirPath;
15
16 assert.strictEqual(".react", path.basename(reactPath));
17 reactPath = path.dirname(reactPath);
18 assert.strictEqual(".vscode", path.basename(reactPath));
19 });
20 });
21 });
22});