MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / asyncFunc

Function asyncFunc

src/test/sanity.tests.js:41–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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");

Callers 1

runSanityTestsFunction · 0.85

Calls 1

resolveFunction · 0.85

Tested by

no test coverage detected