mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -05:00
c92717a1a4
Moving tests around so that we can make #22413 smaller
10 lines
280 B
TypeScript
10 lines
280 B
TypeScript
Deno.test("timeout", async (t) => {
|
|
const timer = setTimeout(() => {
|
|
console.log("timeout");
|
|
}, 10000);
|
|
clearTimeout(timer);
|
|
await t.step("step", async () => {
|
|
await new Promise<void>((resolve) => setTimeout(() => resolve(), 10));
|
|
});
|
|
console.log("done");
|
|
});
|