microsoft/vscode-react-native
Publicmirrored fromhttps://github.com/microsoft/vscode-react-nativeAvailable
src/test/reactDirManager.test.ts
17lines · modecode
| 1 | // The module "assert" provides assertion methods from node |
| 2 | import * as assert from "assert"; |
| 3 | import * as path from "path"; |
| 4 | |
| 5 | import * as reactDirManager from "../extension/reactDirManager"; |
| 6 | |
| 7 | suite("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 | }); |