summaryrefslogtreecommitdiff
path: root/std/permissions
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2020-06-12 20:23:38 +0100
committerGitHub <noreply@github.com>2020-06-12 15:23:38 -0400
commit1fff6f55c3ba98a10018c6d374795e612061e9b6 (patch)
tree12074b6d44736b11513d857e437f9e30a6bf65a4 /std/permissions
parent26bf56afdaf16634ffbaa23684faf3a44cc10f62 (diff)
refactor: Don't destructure the Deno namespace (#6268)
Diffstat (limited to 'std/permissions')
-rw-r--r--std/permissions/test.ts13
1 files changed, 5 insertions, 8 deletions
diff --git a/std/permissions/test.ts b/std/permissions/test.ts
index 6a9955b6a..6622cc761 100644
--- a/std/permissions/test.ts
+++ b/std/permissions/test.ts
@@ -1,11 +1,8 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
-
import { grant, grantOrThrow } from "./mod.ts";
import { assert, assertEquals } from "../testing/asserts.ts";
-const { test } = Deno;
-
-test({
+Deno.test({
name: "grant basic",
async fn() {
assertEquals(await grant({ name: "net" }, { name: "env" }), [
@@ -15,7 +12,7 @@ test({
},
});
-test({
+Deno.test({
name: "grant array",
async fn() {
assertEquals(await grant([{ name: "net" }, { name: "env" }]), [
@@ -25,21 +22,21 @@ test({
},
});
-test({
+Deno.test({
name: "grant logic",
async fn() {
assert(await grant({ name: "net" }));
},
});
-test({
+Deno.test({
name: "grantOrThrow basic",
async fn() {
await grantOrThrow({ name: "net" }, { name: "env" });
},
});
-test({
+Deno.test({
name: "grantOrThrow array",
async fn() {
await grantOrThrow([{ name: "net" }, { name: "env" }]);