diff options
Diffstat (limited to 'cli/tests/testdata/run/permission_test.ts')
-rw-r--r-- | cli/tests/testdata/run/permission_test.ts | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/cli/tests/testdata/run/permission_test.ts b/cli/tests/testdata/run/permission_test.ts deleted file mode 100644 index a2312e3ac..000000000 --- a/cli/tests/testdata/run/permission_test.ts +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. -const name = Deno.args[0]; -// deno-lint-ignore no-explicit-any -const test: { [key: string]: (...args: any[]) => void | Promise<void> } = { - readRequired() { - Deno.readFileSync("assets/hello.txt"); - return Promise.resolve(); - }, - writeRequired() { - Deno.makeTempDirSync(); - }, - envRequired() { - Deno.env.get("home"); - }, - netRequired() { - Deno.listen({ transport: "tcp", port: 4541 }); - }, - async runRequired() { - await new Deno.Command(Deno.build.os === "windows" ? "cmd.exe" : "printf", { - args: Deno.build.os === "windows" ? ["/c", "echo hello"] : ["hello"], - }).output(); - }, -}; - -if (!test[name]) { - console.log("Unknown test:", name); - Deno.exit(1); -} - -test[name](); |