diff options
Diffstat (limited to 'tests/010_set_interval.ts')
-rw-r--r-- | tests/010_set_interval.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/010_set_interval.ts b/tests/010_set_interval.ts index f58cc3fcd..ee0641c5a 100644 --- a/tests/010_set_interval.ts +++ b/tests/010_set_interval.ts @@ -1,7 +1,7 @@ -const id = setInterval(function() { +const id = setInterval(() => { console.log("test"); }, 200); -setTimeout(function() { +setTimeout(() => { clearInterval(id); }, 500); |