1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-30 16:40:57 -05:00
denoland-deno/cli/tests/testdata/test/ops_sanitizer_nexttick.ts
2023-03-03 19:11:10 +00:00

11 lines
290 B
TypeScript

import { nextTick } from "node:process";
// https://github.com/denoland/deno_std/issues/1651
Deno.test("test 1", async () => {
await new Promise<void>((resolve) => nextTick(resolve));
});
Deno.test("test 2", async () => {
await new Promise<void>((resolve) => nextTick(resolve));
});