From 565a21eb0eee61048f6f770bfb24a03131fbc958 Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Fri, 17 Aug 2018 00:28:02 +0900 Subject: chore: format files in tests/ --- tests/010_set_interval.ts | 6 +++--- tests/async_error.ts | 3 +-- tests/async_error.ts.out | 4 ++-- tests/error_001.ts | 4 ++-- 4 files changed, 8 insertions(+), 9 deletions(-) (limited to 'tests') 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 () 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(); -- cgit v1.2.3