summaryrefslogtreecommitdiff
path: root/cli/tests/permission_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/permission_test.ts')
-rw-r--r--cli/tests/permission_test.ts16
1 files changed, 7 insertions, 9 deletions
diff --git a/cli/tests/permission_test.ts b/cli/tests/permission_test.ts
index bcfb840bf..399c757d3 100644
--- a/cli/tests/permission_test.ts
+++ b/cli/tests/permission_test.ts
@@ -1,23 +1,21 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
-const { args, listen, env, exit, makeTempDirSync, readFileSync, run } = Deno;
-
-const name = args[0];
+const name = Deno.args[0];
const test: { [key: string]: Function } = {
readRequired(): Promise<void> {
- readFileSync("README.md");
+ Deno.readFileSync("README.md");
return Promise.resolve();
},
writeRequired(): void {
- makeTempDirSync();
+ Deno.makeTempDirSync();
},
envRequired(): void {
- env.get("home");
+ Deno.env.get("home");
},
netRequired(): void {
- listen({ transport: "tcp", port: 4541 });
+ Deno.listen({ transport: "tcp", port: 4541 });
},
runRequired(): void {
- run({
+ Deno.run({
cmd: [
"python",
"-c",
@@ -29,7 +27,7 @@ const test: { [key: string]: Function } = {
if (!test[name]) {
console.log("Unknown test:", name);
- exit(1);
+ Deno.exit(1);
}
test[name]();