()
| 39 | // Test 6: Async function |
| 40 | runner.test("Async function handling", async (test) => { |
| 41 | const asyncFunc = async () => { |
| 42 | return new Promise((resolve) => { |
| 43 | setTimeout(() => resolve("done"), 10); |
| 44 | }); |
| 45 | }; |
| 46 | |
| 47 | const result = await asyncFunc(); |
| 48 | test.assertEqual(result, "done", "Async function should work correctly"); |
no test coverage detected