summaryrefslogtreecommitdiff
path: root/tests/010_set_interval.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/010_set_interval.ts')
-rw-r--r--tests/010_set_interval.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/010_set_interval.ts b/tests/010_set_interval.ts
new file mode 100644
index 000000000..e013d00bc
--- /dev/null
+++ b/tests/010_set_interval.ts
@@ -0,0 +1,7 @@
+const id = setInterval(function() {
+ console.log("test")
+}, 200);
+
+setTimeout(function() {
+ clearInterval(id)
+}, 500)