diff options
Diffstat (limited to 'std/examples/chat/server_test.ts')
-rw-r--r-- | std/examples/chat/server_test.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/std/examples/chat/server_test.ts b/std/examples/chat/server_test.ts index 673b61174..e1b1c0e12 100644 --- a/std/examples/chat/server_test.ts +++ b/std/examples/chat/server_test.ts @@ -38,7 +38,7 @@ test({ const resp = await fetch("http://127.0.0.1:8080/"); assertEquals(resp.status, 200); assertEquals(resp.headers.get("content-type"), "text/html"); - const html = await resp.body.text(); + const html = await resp.text(); assert(html.includes("ws chat example"), "body is ok"); } finally { server.close(); |