diff options
Diffstat (limited to 'test_napi/async_test.js')
-rw-r--r-- | test_napi/async_test.js | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/test_napi/async_test.js b/test_napi/async_test.js deleted file mode 100644 index 4d9ad99c2..000000000 --- a/test_napi/async_test.js +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. - -import { assertEquals, loadTestLibrary } from "./common.js"; - -const asyncTask = loadTestLibrary(); - -Deno.test("napi async task schedule", async () => { - let called = false; - await new Promise((resolve) => { - asyncTask.test_async_work(() => { - called = true; - resolve(); - }); - }); - assertEquals(called, true); -}); |