diff options
author | Kurt Mackey <mrkurt@gmail.com> | 2019-05-31 14:00:37 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-05-31 17:00:37 -0400 |
commit | 652be19041246d762ac5a1fa0b7fcddecb1ffd5d (patch) | |
tree | 1d65644ae7c94b5f4801f4089feb36db948f3e6a /js/fetch_test.ts | |
parent | 8fb44eba5bb9862de5fcc6c785eb6f21ecbd0aea (diff) |
use body when Request instance is passed to fetch (fixes #2433) (#2435)
Diffstat (limited to 'js/fetch_test.ts')
-rw-r--r-- | js/fetch_test.ts | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/js/fetch_test.ts b/js/fetch_test.ts index 5bec33d41..b93f7845a 100644 --- a/js/fetch_test.ts +++ b/js/fetch_test.ts @@ -99,7 +99,6 @@ testPerm({ net: true }, async function fetchInitStringBody(): Promise<void> { assert(response.headers.get("content-type").startsWith("text/plain")); }); -/* TODO(ry) Re-enable this test. testPerm({ net: true }, async function fetchRequestInitStringBody(): Promise< void > { @@ -111,9 +110,7 @@ testPerm({ net: true }, async function fetchRequestInitStringBody(): Promise< const response = await fetch(req); const text = await response.text(); assertEquals(text, data); - assert(response.headers.get("content-type").startsWith("text/plain")); }); -*/ testPerm({ net: true }, async function fetchInitTypedArrayBody(): Promise< void |