summaryrefslogtreecommitdiff
path: root/js/timers_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'js/timers_test.ts')
-rw-r--r--js/timers_test.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/js/timers_test.ts b/js/timers_test.ts
index af172e976..e5fe2d478 100644
--- a/js/timers_test.ts
+++ b/js/timers_test.ts
@@ -1,4 +1,5 @@
import { test, assertEqual } from "./test_util.ts";
+import { setGlobalTimeout } from "deno";
function deferred() {
let resolve;
@@ -95,3 +96,7 @@ test(async function intervalCancelInvalidSilentFail() {
// Should silently fail (no panic)
clearInterval(2147483647);
});
+
+test(async function SetGlobalTimeoutSmoke() {
+ setGlobalTimeout(50);
+});