The fetch function should support direct method chaining for bytearray.
()
| 69 | |
| 70 | |
| 71 | async def test_fetch_bytearray_direct(): |
| 72 | """ |
| 73 | The fetch function should support direct method chaining for bytearray. |
| 74 | """ |
| 75 | data = await fetch("https://jsonplaceholder.typicode.com/todos/1").bytearray() |
| 76 | assert isinstance(data, bytearray) |
| 77 | assert b"delectus aut autem" in data |
| 78 | |
| 79 | |
| 80 | async def test_fetch_array_buffer(): |