diff options
author | Jimmy Wärting <jimmy@warting.se> | 2021-07-05 15:34:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-05 15:34:37 +0200 |
commit | 2c0b0e45b72ef1b5d7fa95e1e110d07ddbc720f7 (patch) | |
tree | 3b54a6f1f156f8d105cf41ac290035c8b5f8f1c9 /cli/tests/unit/fetch_test.ts | |
parent | ea87d860beda7cd40eb6857199a00e5ba8700fd2 (diff) |
refactor: asynchronous blob backing store (#10969)
Co-authored-by: Luca Casonato <hello@lcas.dev>
Diffstat (limited to 'cli/tests/unit/fetch_test.ts')
-rw-r--r-- | cli/tests/unit/fetch_test.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cli/tests/unit/fetch_test.ts b/cli/tests/unit/fetch_test.ts index a84e18367..24a820dba 100644 --- a/cli/tests/unit/fetch_test.ts +++ b/cli/tests/unit/fetch_test.ts @@ -821,7 +821,9 @@ unitTest(function responseRedirect(): void { unitTest(async function responseWithoutBody(): Promise<void> { const response = new Response(); assertEquals(await response.arrayBuffer(), new ArrayBuffer(0)); - assertEquals(await response.blob(), new Blob([])); + const blob = await response.blob(); + assertEquals(blob.size, 0); + assertEquals(await blob.arrayBuffer(), new ArrayBuffer(0)); assertEquals(await response.text(), ""); await assertThrowsAsync(async () => { await response.json(); |