diff options
author | Luca Casonato <lucacasonato@yahoo.com> | 2021-01-28 21:37:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-28 21:37:21 +0100 |
commit | 6ecc86cf2ae4bb0aac6f3d0e954382a69176b387 (patch) | |
tree | 8405d5a781abda4e59b508af2e6b5beaba86db88 /cli/tests/unit/fetch_test.ts | |
parent | 7bda0f567ec7e1a688b41b6026c6124656cd413a (diff) |
chore: add jsdoc to 26_fetch.js and enable some fetch tests (#9305)
Diffstat (limited to 'cli/tests/unit/fetch_test.ts')
-rw-r--r-- | cli/tests/unit/fetch_test.ts | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cli/tests/unit/fetch_test.ts b/cli/tests/unit/fetch_test.ts index a01b09d13..9776baa2f 100644 --- a/cli/tests/unit/fetch_test.ts +++ b/cli/tests/unit/fetch_test.ts @@ -108,10 +108,9 @@ unitTest({ perms: { net: true } }, async function fetchBodyUsed(): Promise< > { const response = await fetch("http://localhost:4545/cli/tests/fixture.json"); assertEquals(response.bodyUsed, false); - assertThrows((): void => { - // deno-lint-ignore no-explicit-any - (response as any).bodyUsed = true; - }); + // deno-lint-ignore no-explicit-any + (response as any).bodyUsed = true; + assertEquals(response.bodyUsed, false); await response.blob(); assertEquals(response.bodyUsed, true); }); |