From 89f0b796bd442ff352c3f93f69156ca6d85bfd5e Mon Sep 17 00:00:00 2001 From: Mohammad Sulaiman Date: Tue, 5 Nov 2024 08:39:05 +0200 Subject: chore: deprecate run itests (#26444) --- tests/specs/run/_012_async/012_async.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/specs/run/_012_async/012_async.ts (limited to 'tests/specs/run/_012_async/012_async.ts') diff --git a/tests/specs/run/_012_async/012_async.ts b/tests/specs/run/_012_async/012_async.ts new file mode 100644 index 000000000..536197b68 --- /dev/null +++ b/tests/specs/run/_012_async/012_async.ts @@ -0,0 +1,11 @@ +// Check that we can use the async keyword. +async function main() { + await new Promise((resolve) => { + console.log("2"); + setTimeout(resolve, 100); + }); + console.log("3"); +} + +console.log("1"); +main(); -- cgit v1.2.3