microsoft/vscode-react-native

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
0.6.1

Branches

Tags

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

Clone

HTTPS

Download ZIP

test/extension/reactDirManager.test.ts

22lines · modepreview

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for details.

// The module "assert" provides assertion methods from node
import * as assert from "assert";
import * as path from "path";

import { ReactDirManager } from "../../src/extension/reactDirManager";

suite("reactDirManager.ts", () => {
    suite("extensionContext", function() {
        suite("ReactDirPath", function() {
            test("Should end with the correct path to the react folder", () => {
                let reactPath = new ReactDirManager("").reactDirPath;

                assert.strictEqual(".react", path.basename(reactPath));
                reactPath = path.dirname(reactPath);
                assert.strictEqual(".vscode", path.basename(reactPath));
            });
        });
    });
});