summaryrefslogtreecommitdiff
path: root/js/test_util.ts
diff options
context:
space:
mode:
Diffstat (limited to 'js/test_util.ts')
-rw-r--r--js/test_util.ts20
1 files changed, 10 insertions, 10 deletions
diff --git a/js/test_util.ts b/js/test_util.ts
index af5dbd2b5..1b9e2f48c 100644
--- a/js/test_util.ts
+++ b/js/test_util.ts
@@ -25,7 +25,7 @@ interface TestPermissions {
net?: boolean;
env?: boolean;
run?: boolean;
- highPrecision?: boolean;
+ hrtime?: boolean;
}
const processPerms = Deno.permissions();
@@ -51,7 +51,7 @@ function permToString(perms: Deno.Permissions): string {
const n = perms.net ? 1 : 0;
const e = perms.env ? 1 : 0;
const u = perms.run ? 1 : 0;
- const h = perms.highPrecision ? 1 : 0;
+ const h = perms.hrtime ? 1 : 0;
return `permR${r}W${w}N${n}E${e}U${u}H${h}`;
}
@@ -69,7 +69,7 @@ function normalizeTestPermissions(perms: TestPermissions): Deno.Permissions {
net: !!perms.net,
run: !!perms.run,
env: !!perms.env,
- highPrecision: !!perms.highPrecision
+ hrtime: !!perms.hrtime
};
}
@@ -96,7 +96,7 @@ export function test(fn: testing.TestFunction): void {
net: false,
env: false,
run: false,
- highPrecision: false
+ hrtime: false
},
fn
);
@@ -152,7 +152,7 @@ test(function permissionsMatches(): void {
net: false,
env: false,
run: false,
- highPrecision: false
+ hrtime: false
},
normalizeTestPermissions({ read: true })
)
@@ -166,7 +166,7 @@ test(function permissionsMatches(): void {
net: false,
env: false,
run: false,
- highPrecision: false
+ hrtime: false
},
normalizeTestPermissions({})
)
@@ -180,7 +180,7 @@ test(function permissionsMatches(): void {
net: true,
env: true,
run: true,
- highPrecision: true
+ hrtime: true
},
normalizeTestPermissions({ read: true })
),
@@ -195,7 +195,7 @@ test(function permissionsMatches(): void {
net: true,
env: false,
run: false,
- highPrecision: false
+ hrtime: false
},
normalizeTestPermissions({ read: true })
),
@@ -210,7 +210,7 @@ test(function permissionsMatches(): void {
net: true,
env: true,
run: true,
- highPrecision: true
+ hrtime: true
},
{
read: true,
@@ -218,7 +218,7 @@ test(function permissionsMatches(): void {
net: true,
env: true,
run: true,
- highPrecision: true
+ hrtime: true
}
)
);