From e389917535e8e7ef13920a96f9c9c1e1ec2b2c55 Mon Sep 17 00:00:00 2001 From: Marvin Hagemeister Date: Wed, 15 May 2024 00:42:43 +0200 Subject: fix(node): stub `AsyncResource.emitDestroy()` (#23802) Fixes https://github.com/denoland/deno/issues/23397 --- tests/unit_node/async_hooks_test.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/unit_node/async_hooks_test.ts') diff --git a/tests/unit_node/async_hooks_test.ts b/tests/unit_node/async_hooks_test.ts index 8d94180cf..46d7dd785 100644 --- a/tests/unit_node/async_hooks_test.ts +++ b/tests/unit_node/async_hooks_test.ts @@ -130,3 +130,8 @@ Deno.test(function asyncResourceStub() { const resource = new AsyncResource("dbquery"); assert(typeof resource.asyncId() === "number"); }); + +Deno.test(function emitDestroyStub() { + const resource = new AsyncResource("foo"); + assert(typeof resource.emitDestroy === "function"); +}); -- cgit v1.2.3