The fetch function should support direct method chaining for arrayBuffer.
()
| 92 | |
| 93 | |
| 94 | async def test_fetch_array_buffer_direct(): |
| 95 | """ |
| 96 | The fetch function should support direct method chaining for arrayBuffer. |
| 97 | """ |
| 98 | data = await fetch("https://jsonplaceholder.typicode.com/todos/1").arrayBuffer() |
| 99 | bytes_ = bytes(data) |
| 100 | assert b"delectus aut autem" in bytes_ |
| 101 | |
| 102 | |
| 103 | async def test_fetch_blob(): |
nothing calls this directly
no test coverage detected