Skip to content

Commit f2d6524

Browse files
authored
test: remove skip checks for existance of global available Blob and File (#4460)
1 parent 357079f commit f2d6524

4 files changed

Lines changed: 5 additions & 7 deletions

File tree

test/client-post.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const { once } = require('node:events')
66
const { Client } = require('..')
77
const { createServer } = require('node:http')
88

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

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

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

4848
const server = createServer({ joinDuplicateHeaders: true }, async (req, res) => {

test/fetch/http2.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ test(
240240
strictEqual(Buffer.concat(requestChunks).toString('utf-8'), expectedBody)
241241
}
242242
)
243-
test('Should handle h2 request with body (Blob)', { skip: !Blob }, async (t) => {
243+
test('Should handle h2 request with body (Blob)', async (t) => {
244244
const server = createSecureServer(await pem.generate({ opts: { keySize: 2048 } }))
245245
const expectedBody = 'asd'
246246
const requestChunks = []
@@ -303,7 +303,6 @@ test('Should handle h2 request with body (Blob)', { skip: !Blob }, async (t) =>
303303

304304
test(
305305
'Should handle h2 request with body (Blob:ArrayBuffer)',
306-
{ skip: !Blob },
307306
async (t) => {
308307
const server = createSecureServer(await pem.generate({ opts: { keySize: 2048 } }))
309308
const expectedBody = 'hello'

test/http2.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1048,7 +1048,6 @@ test('Should handle h2 request with body (Blob)', async t => {
10481048

10491049
test(
10501050
'Should handle h2 request with body (Blob:ArrayBuffer)',
1051-
{ skip: !Blob },
10521051
async t => {
10531052
const server = createSecureServer(await pem.generate({ opts: { keySize: 2048 } }))
10541053
const expectedBody = 'hello'

test/util.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ describe('isBlobLike', () => {
1111
strictEqual(isBlobLike(buffer), false)
1212
})
1313

14-
test('blob', { skip: !Blob }, () => {
14+
test('blob', () => {
1515
const blob = new Blob(['asd'], {
1616
type: 'application/json'
1717
})
1818
strictEqual(isBlobLike(blob), true)
1919
})
2020

21-
test('file', { skip: !File }, () => {
21+
test('file', () => {
2222
const file = new File(['asd'], 'file.txt', {
2323
type: 'text/plain'
2424
})

0 commit comments

Comments
 (0)