summaryrefslogtreecommitdiff
path: root/cli/tests/unit/timers_test.ts
diff options
context:
space:
mode:
authorCasper Beyer <caspervonb@pm.me>2021-09-23 07:50:50 +0800
committerGitHub <noreply@github.com>2021-09-23 01:50:50 +0200
commit830586d242216e64fcd16e65cc83db9d54d63dc0 (patch)
treea84f0090faaa14879693016e9d9b13fcfbb92dcd /cli/tests/unit/timers_test.ts
parent87e78802b0ae65cc57d66eaa8e5265f74cf69092 (diff)
test(cli): align unit test permissions with runtime test permissions (#12189)
Diffstat (limited to 'cli/tests/unit/timers_test.ts')
-rw-r--r--cli/tests/unit/timers_test.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/tests/unit/timers_test.ts b/cli/tests/unit/timers_test.ts
index 2decddbd9..7ac270516 100644
--- a/cli/tests/unit/timers_test.ts
+++ b/cli/tests/unit/timers_test.ts
@@ -445,7 +445,7 @@ unitTest(async function timerIgnoresDateOverride() {
assertEquals(hasThrown, 1);
});
-unitTest({ perms: { hrtime: true } }, function sleepSync() {
+unitTest({ permissions: { hrtime: true } }, function sleepSync() {
const start = performance.now();
Deno.sleepSync(10);
const after = performance.now();
@@ -453,7 +453,7 @@ unitTest({ perms: { hrtime: true } }, function sleepSync() {
});
unitTest(
- { perms: { hrtime: true } },
+ { permissions: { hrtime: true } },
async function sleepSyncShorterPromise() {
const perf = performance;
const short = 5;
@@ -472,7 +472,7 @@ unitTest(
);
unitTest(
- { perms: { hrtime: true } },
+ { permissions: { hrtime: true } },
async function sleepSyncLongerPromise() {
const perf = performance;
const short = 5;