From 1464b756a4ef091ef97d1bf7340188ab5fe5492a Mon Sep 17 00:00:00 2001 From: David Sherret Date: Mon, 19 Sep 2022 09:32:21 -0500 Subject: refactor: move out test files from root testdata directory into sub directories (#15949) --- cli/tests/testdata/run/012_async.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 cli/tests/testdata/run/012_async.ts (limited to 'cli/tests/testdata/run/012_async.ts') diff --git a/cli/tests/testdata/run/012_async.ts b/cli/tests/testdata/run/012_async.ts new file mode 100644 index 000000000..536197b68 --- /dev/null +++ b/cli/tests/testdata/run/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