summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/unit_node/perf_hooks_test.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/unit_node/perf_hooks_test.ts b/tests/unit_node/perf_hooks_test.ts
index d6f58d1cf..86c4aee4c 100644
--- a/tests/unit_node/perf_hooks_test.ts
+++ b/tests/unit_node/perf_hooks_test.ts
@@ -1,6 +1,6 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
import * as perfHooks from "node:perf_hooks";
-import { performance } from "node:perf_hooks";
+import { performance, PerformanceObserver } from "node:perf_hooks";
import { assertEquals, assertThrows } from "@std/assert/mod.ts";
Deno.test({
@@ -44,9 +44,10 @@ Deno.test({
});
Deno.test({
- name: "[perf_hooks] PerformanceEntry",
+ name: "[perf_hooks] PerformanceEntry & PerformanceObserver",
fn() {
assertEquals<unknown>(perfHooks.PerformanceEntry, PerformanceEntry);
+ assertEquals<unknown>(perfHooks.PerformanceObserver, PerformanceObserver);
},
});