summaryrefslogtreecommitdiff
path: root/cli/tests/unit/performance_test.ts
diff options
context:
space:
mode:
authorcrowlKats <13135287+crowlKats@users.noreply.github.com>2020-11-26 17:22:36 +0100
committerGitHub <noreply@github.com>2020-11-26 17:22:36 +0100
commite6685f0f01b8a11a5eaff020f5babcfde76b3038 (patch)
tree6c6850bf7bc253f29aec97e2d221f87a2da53c50 /cli/tests/unit/performance_test.ts
parent2031418a24e6df65a600349db940a555b1220088 (diff)
refactor(cli/tests): replace createResolvable with deferred (#8507)
Diffstat (limited to 'cli/tests/unit/performance_test.ts')
-rw-r--r--cli/tests/unit/performance_test.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/tests/unit/performance_test.ts b/cli/tests/unit/performance_test.ts
index 122938b36..2b8bc620d 100644
--- a/cli/tests/unit/performance_test.ts
+++ b/cli/tests/unit/performance_test.ts
@@ -3,14 +3,14 @@ import {
assert,
assertEquals,
assertThrows,
- createResolvable,
+ deferred,
unitTest,
} from "./test_util.ts";
unitTest({ perms: { hrtime: false } }, async function performanceNow(): Promise<
void
> {
- const resolvable = createResolvable();
+ const resolvable = deferred();
const start = performance.now();
setTimeout((): void => {
const end = performance.now();