summaryrefslogtreecommitdiff
path: root/tests/012_async.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2019-04-21 16:40:10 -0400
committerGitHub <noreply@github.com>2019-04-21 16:40:10 -0400
commit9dfebbc9496138efbeedc431068f41662c780f3e (patch)
treec3718c3dc132d11c08c8fc18933daebf886bf787 /tests/012_async.ts
parent6cded14bdf313762956d4d5361cfe8115628b535 (diff)
Fix eslint warnings (#2151)
Co-authored-by: Bartek IwaƄczuk <biwanczuk@gmail.com> Co-authored-by: LE GOFF Vincent <g_n_s@hotmail.fr>
Diffstat (limited to 'tests/012_async.ts')
-rw-r--r--tests/012_async.ts10
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");
}