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
4 changes: 2 additions & 2 deletions test/client-post.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const { once } = require('node:events')
const { Client } = require('..')
const { createServer } = require('node:http')

test('request post blob', { skip: !Blob }, async (t) => {
test('request post blob', async (t) => {
t = tspl(t, { plan: 3 })

const server = createServer({ joinDuplicateHeaders: true }, async (req, res) => {
Expand Down Expand Up @@ -42,7 +42,7 @@ test('request post blob', { skip: !Blob }, async (t) => {
await t.completed
})

test('request post arrayBuffer', { skip: !Blob }, async (t) => {
test('request post arrayBuffer', async (t) => {
t = tspl(t, { plan: 3 })

const server = createServer({ joinDuplicateHeaders: true }, async (req, res) => {
Expand Down
3 changes: 1 addition & 2 deletions test/fetch/http2.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ test(
strictEqual(Buffer.concat(requestChunks).toString('utf-8'), expectedBody)
}
)
test('Should handle h2 request with body (Blob)', { skip: !Blob }, async (t) => {
test('Should handle h2 request with body (Blob)', async (t) => {
const server = createSecureServer(await pem.generate({ opts: { keySize: 2048 } }))
const expectedBody = 'asd'
const requestChunks = []
Expand Down Expand Up @@ -303,7 +303,6 @@ test('Should handle h2 request with body (Blob)', { skip: !Blob }, async (t) =>

test(
'Should handle h2 request with body (Blob:ArrayBuffer)',
{ skip: !Blob },
async (t) => {
const server = createSecureServer(await pem.generate({ opts: { keySize: 2048 } }))
const expectedBody = 'hello'
Expand Down
3 changes: 1 addition & 2 deletions test/http2.js
Original file line number Diff line number Diff line change
Expand Up @@ -1029,7 +1029,7 @@ test('Should handle h2 request with body (iterable)', async t => {
t.strictEqual(Buffer.concat(requestChunks).toString('utf-8'), expectedBody)
})

test('Should handle h2 request with body (Blob)', { skip: !Blob }, async t => {
test('Should handle h2 request with body (Blob)', async t => {
const server = createSecureServer(await pem.generate({ opts: { keySize: 2048 } }))
const expectedBody = 'asd'
const requestChunks = []
Expand Down Expand Up @@ -1093,7 +1093,6 @@ test('Should handle h2 request with body (Blob)', { skip: !Blob }, async t => {

test(
'Should handle h2 request with body (Blob:ArrayBuffer)',
{ skip: !Blob },
async t => {
const server = createSecureServer(await pem.generate({ opts: { keySize: 2048 } }))
const expectedBody = 'hello'
Expand Down
4 changes: 2 additions & 2 deletions test/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ describe('isBlobLike', () => {
strictEqual(isBlobLike(buffer), false)
})

test('blob', { skip: !Blob }, () => {
test('blob', () => {
const blob = new Blob(['asd'], {
type: 'application/json'
})
strictEqual(isBlobLike(blob), true)
})

test('file', { skip: !File }, () => {
test('file', () => {
const file = new File(['asd'], 'file.txt', {
type: 'text/plain'
})
Expand Down
Loading