summaryrefslogtreecommitdiff
path: root/std/examples/chat/server_test.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2020-04-10 09:51:17 -0400
committerGitHub <noreply@github.com>2020-04-10 09:51:17 -0400
commit02bc58d83253fd3be61787bb28b6b02e3aa71092 (patch)
tree287491a848ee9fecf1e1e983841f040bc9bec0a4 /std/examples/chat/server_test.ts
parentbe71885628c3820cc4e62d229326de16a6830fec (diff)
BREAKING: Make fetch API more web compatible (#4687)
- Removes the __fetch namespace from `deno types` - Response.redirect should be a static. - Response.body should not be AsyncIterable. - Disables the deno_proxy benchmark - Makes std/examples/curl.ts buffer the body before printing to stdout
Diffstat (limited to 'std/examples/chat/server_test.ts')
-rw-r--r--std/examples/chat/server_test.ts2
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();