MCPcopy Create free account
hub / github.com/nodejs/undici / FormData

Function FormData

test/fetch/formdata.js:291–301  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

289
290 await t.test('Invalid function FormData', (t) => {
291 function FormData () {
292 const data = []
293 return {
294 append (key, value) {
295 data.push([key, value])
296 },
297 get (key) {
298 return data.find(([k]) => k === key)
299 }
300 }
301 }
302
303 const form = new FormData()
304 t.assert.strictEqual(isFormDataLike(form), false)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected