diff options
Diffstat (limited to 'tests/testdata/test/replace_timers.js')
-rw-r--r-- | tests/testdata/test/replace_timers.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/testdata/test/replace_timers.js b/tests/testdata/test/replace_timers.js new file mode 100644 index 000000000..692f1d671 --- /dev/null +++ b/tests/testdata/test/replace_timers.js @@ -0,0 +1,7 @@ +Deno.test("foo", async (t) => { + globalThis.setTimeout = () => {}; + globalThis.clearTimeout = () => {}; + globalThis.setInterval = () => {}; + globalThis.clearInterval = () => {}; + await t.step("bar", () => {}); +}); |