1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-21 04:52:26 -05:00
denoland-deno/tests/napi/uv_test.js
2024-12-31 19:12:39 +00:00

22 lines
458 B
JavaScript

// Copyright 2018-2025 the Deno authors. MIT license.
import { assertEquals, loadTestLibrary } from "./common.js";
const uv = loadTestLibrary();
Deno.test({
name: "napi uv async",
ignore: true,
fn: async () => {
let called = false;
await new Promise((resolve) => {
uv.test_uv_async((value) => {
called = true;
if (value === 5) {
resolve();
}
});
});
assertEquals(called, true);
},
});