microsoft/vscode-react-native

Public

mirrored from https://github.com/microsoft/vscode-react-nativeAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
a289475be0da2ee07b9b056760f2f0a3076877b2

Branches

Tags

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

Clone

HTTPS

Download ZIP

src/test/reactDirManager.test.ts

17lines · modepreview

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

import * as reactDirManager from "../extension/reactDirManager";

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

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