Skip to content

Commit

Permalink
remove bad test
Browse files Browse the repository at this point in the history
  • Loading branch information
KhafraDev committed Sep 20, 2024
1 parent accbd5b commit c211df0
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions test/fetch/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ const {
Headers,
fetch
} = require('../../')
const { fromInnerRequest, makeRequest } = require('../../lib/web/fetch/request')
const { kState, kSignal, kHeaders } = require('../../lib/web/fetch/symbols')
const { getHeadersGuard, getHeadersList } = require('../../lib/web/fetch/headers')

const hasSignalReason = 'reason' in AbortSignal.prototype

Expand Down Expand Up @@ -462,17 +459,3 @@ test('Issue#2465', async (t) => {
const request = new Request('http://localhost', { body: new SharedArrayBuffer(0), method: 'POST' })
strictEqual(await request.text(), '[object SharedArrayBuffer]')
})

test('fromInnerRequest', () => {
const innerRequest = makeRequest({
urlList: [new URL('http://asd')]
})
const signal = new AbortController().signal
const request = fromInnerRequest(innerRequest, signal, 'immutable')

// check property
assert.strictEqual(request[kState], innerRequest)
assert.strictEqual(request[kSignal], signal)
assert.strictEqual(getHeadersList(request[kHeaders]), innerRequest.headersList)
assert.strictEqual(getHeadersGuard(request[kHeaders]), 'immutable')
})

0 comments on commit c211df0

Please sign in to comment.