summaryrefslogtreecommitdiff
path: root/tests/010_set_interval.ts
diff options
context:
space:
mode:
authorChris Bystrek <chris.bystrek@gmail.com>2018-10-05 07:29:55 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-10-05 07:29:55 -0400
commit6a649012bcd780f4b3adfa55647772fce0012fde (patch)
tree7b81a7f269793fa9a790b90024f888963e24cfc7 /tests/010_set_interval.ts
parentce9148943c4ffa43252e3692014489ebcff3d51e (diff)
Changed tools/lint.py to lint the entire js and tests directories. (#900)
* Changed tools/lint.py to lint the entire js and tests directorys and sub directories, currently it was pointing at tsconfig and would only lint files that were part of js/main.ts or node_modules/typescript/lib/lib.esnext.d.ts and their dependencies * Broke the typescript linting out into separate steps for the main typescript programing and tests. * Fixed linting issues in ts tests.
Diffstat (limited to 'tests/010_set_interval.ts')
-rw-r--r--tests/010_set_interval.ts4
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);