1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-11 18:17:48 -05:00
denoland-deno/tests/testdata/test/sanitizer/ops_sanitizer_nexttick.ts
Matt Mastracci c92717a1a4
chore(cli): pre-factor the sanitizer tests (#22436)
Moving tests around so that we can make #22413 smaller
2024-02-16 10:49:42 -07: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));
});