summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/010_set_interval.ts6
-rw-r--r--tests/async_error.ts3
-rw-r--r--tests/async_error.ts.out4
-rw-r--r--tests/error_001.ts4
4 files changed, 8 insertions, 9 deletions
diff --git a/tests/010_set_interval.ts b/tests/010_set_interval.ts
index e013d00bc..f58cc3fcd 100644
--- a/tests/010_set_interval.ts
+++ b/tests/010_set_interval.ts
@@ -1,7 +1,7 @@
const id = setInterval(function() {
- console.log("test")
+ console.log("test");
}, 200);
setTimeout(function() {
- clearInterval(id)
-}, 500)
+ clearInterval(id);
+}, 500);
diff --git a/tests/async_error.ts b/tests/async_error.ts
index 12dee11eb..7ce25d0cb 100644
--- a/tests/async_error.ts
+++ b/tests/async_error.ts
@@ -1,9 +1,8 @@
-
console.log("hello");
const foo = async () => {
console.log("before error");
throw Error("error");
-}
+};
foo();
console.log("world");
diff --git a/tests/async_error.ts.out b/tests/async_error.ts.out
index 1290629b1..c98c79bfc 100644
--- a/tests/async_error.ts.out
+++ b/tests/async_error.ts.out
@@ -1,8 +1,8 @@
hello
before error
Error: error
- at foo ([WILDCARD]tests/async_error.ts:5:9)
- at eval ([WILDCARD]tests/async_error.ts:8:1)
+ at foo ([WILDCARD]tests/async_error.ts:4:9)
+ at eval ([WILDCARD]tests/async_error.ts:7:1)
at eval (<anonymous>)
at execute (deno/js/runtime.ts:[WILDCARD])
at FileModule.compileAndRun (deno/js/runtime.ts:[WILDCARD])
diff --git a/tests/error_001.ts b/tests/error_001.ts
index 624bc55da..ab6e17a52 100644
--- a/tests/error_001.ts
+++ b/tests/error_001.ts
@@ -3,7 +3,7 @@ function foo() {
}
function bar() {
- foo()
+ foo();
}
-bar()
+bar();