1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-21 06:44:45 -05:00
denoland-deno/tests/specs/test/ops_sanitizer_nexttick/ops_sanitizer_nexttick.ts
HasanAlrimawi e0b9c745c1
chore: deprecate test itests (#25512)
This PR is part of #22907

---------

Signed-off-by: HasanAlrimawi <141642411+HasanAlrimawi@users.noreply.github.com>
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2024-09-16 19:38:40 +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));
});