diff options
Diffstat (limited to 'cli/js/performance_test.ts')
-rw-r--r-- | cli/js/performance_test.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cli/js/performance_test.ts b/cli/js/performance_test.ts index 227514954..89b7cad8b 100644 --- a/cli/js/performance_test.ts +++ b/cli/js/performance_test.ts @@ -1,7 +1,9 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. -import { testPerm, assert, createResolvable } from "./test_util.ts"; +import { unitTest, assert, createResolvable } from "./test_util.ts"; -testPerm({ hrtime: false }, async function performanceNow(): Promise<void> { +unitTest({ perms: { hrtime: false } }, async function performanceNow(): Promise< + void +> { const resolvable = createResolvable(); const start = performance.now(); setTimeout((): void => { |