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