Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions test/fetch/encoding.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ test('content-encoding header is case-iNsENsITIve', async (t) => {

assert.strictEqual(await response.text(), text)
assert.strictEqual(response.headers.get('content-encoding'), contentCodings)

await t.completed
})

test('response decompression according to content-encoding should be handled in a correct order', async (t) => {
Expand All @@ -57,6 +59,8 @@ test('response decompression according to content-encoding should be handled in
const response = await fetch(`http://localhost:${server.address().port}`)

assert.strictEqual(await response.text(), text)

await t.completed
})

test('should decompress zstandard response',
Expand Down Expand Up @@ -84,4 +88,6 @@ test('should decompress zstandard response',
assert.strictEqual(await response.text(), text)
assert.strictEqual(response.headers.get('content-encoding'), contentCodings)
assert.strictEqual(response.headers.get('content-type'), 'text/plain')

await t.completed
})
Loading
Loading