MCPcopy Create free account
hub / github.com/Vinyzu/Botright / mul

Function mul

tests/playwright_tests/test_page.py:386–387  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

384@pytest.mark.asyncio
385async def test_expose_function_should_await_returned_promise(page):
386 async def mul(a, b):
387 return a * b
388
389 await page.expose_function("compute", mul)
390 assert await page.evaluate("compute(3, 5)") == 15

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected