diff options
Diffstat (limited to 'cli/tests/012_async.ts')
-rw-r--r-- | cli/tests/012_async.ts | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/cli/tests/012_async.ts b/cli/tests/012_async.ts index 1f1822c04..773272ca1 100644 --- a/cli/tests/012_async.ts +++ b/cli/tests/012_async.ts @@ -1,11 +1,9 @@ // Check that we can use the async keyword. async function main(): Promise<void> { - await new Promise( - (resolve): void => { - console.log("2"); - setTimeout(resolve, 100); - } - ); + await new Promise((resolve): void => { + console.log("2"); + setTimeout(resolve, 100); + }); console.log("3"); } |