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