From 504f928065d78f3df215d30493849312d47a3b2b Mon Sep 17 00:00:00 2001 From: Jesse Attas Date: Fri, 20 Sep 2024 16:01:09 -0500 Subject: [PATCH] Promise.resolve Co-authored-by: Milan Raj --- tests/typescript-requiring-type-checking/index.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/typescript-requiring-type-checking/index.ts b/tests/typescript-requiring-type-checking/index.ts index 53f809f..8360128 100644 --- a/tests/typescript-requiring-type-checking/index.ts +++ b/tests/typescript-requiring-type-checking/index.ts @@ -12,8 +12,6 @@ export class NI { } public async asyncAwesomeness(): Promise { - await new Promise(resolve => { - resolve(true); - }); + await Promise.resolve(true); } }