summaryrefslogtreecommitdiff
path: root/cli/tests/unit/fetch_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/unit/fetch_test.ts')
-rw-r--r--cli/tests/unit/fetch_test.ts7
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);
});