Test the display function with a simple string.
()
| 50 | |
| 51 | |
| 52 | async def test_simple_display(): |
| 53 | """ |
| 54 | Test the display function with a simple string. |
| 55 | """ |
| 56 | display("Hello, world") |
| 57 | container = await get_display_container() |
| 58 | assert len(container.children) == 1, "Expected one child in the display container." |
| 59 | assert ( |
| 60 | container.children[0].tagName == "DIV" |
| 61 | ), "Expected a div element in the display container." |
| 62 | assert container.children[0].innerHTML == "Hello, world" |
| 63 | |
| 64 | |
| 65 | async def test_consecutive_display(): |
nothing calls this directly
no test coverage detected