summaryrefslogtreecommitdiff
path: root/std/permissions/test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/permissions/test.ts')
-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" }]);