diff options
Diffstat (limited to 'cli/tests')
-rw-r--r-- | cli/tests/fetch_deps.ts | 14 | ||||
-rw-r--r-- | cli/tests/fixture.json | 14 | ||||
l--------- | cli/tests/symlink_to_subdir | 1 |
3 files changed, 15 insertions, 14 deletions
diff --git a/cli/tests/fetch_deps.ts b/cli/tests/fetch_deps.ts deleted file mode 100644 index e6ef8854e..000000000 --- a/cli/tests/fetch_deps.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Run ./tools/http_server.py too in order for this test to run. -import { assert } from "../std/testing/asserts.ts"; - -// TODO Top level await https://github.com/denoland/deno/issues/471 -async function main(): Promise<void> { - const response = await fetch("http://localhost:4545/package.json"); - const json = await response.json(); - const deps = Object.keys(json.devDependencies); - console.log("Deno JS Deps"); - console.log(deps.map((d): string => `* ${d}`).join("\n")); - assert(deps.includes("typescript")); -} - -main(); diff --git a/cli/tests/fixture.json b/cli/tests/fixture.json new file mode 100644 index 000000000..56e056b6a --- /dev/null +++ b/cli/tests/fixture.json @@ -0,0 +1,14 @@ +{ + "name": "deno", + "private": true, + "devDependencies": { + "@types/prettier": "1.16.1", + "@typescript-eslint/eslint-plugin": "2.5.0", + "@typescript-eslint/parser": "2.5.0", + "eslint": "5.15.1", + "eslint-config-prettier": "4.1.0", + "magic-string": "0.25.2", + "prettier": "1.17.1", + "typescript": "3.6.3" + } +} diff --git a/cli/tests/symlink_to_subdir b/cli/tests/symlink_to_subdir new file mode 120000 index 000000000..fe0c45aa4 --- /dev/null +++ b/cli/tests/symlink_to_subdir @@ -0,0 +1 @@ +subdir/
\ No newline at end of file |