Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KhafraDev committed Oct 25, 2023
1 parent a0c8c1b commit 476ce9b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/fetch/user-agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ const { test, skip } = require('tap')
const events = require('events')
const http = require('http')
const undici = require('../../')
const nodeBuild = require('../../undici-fetch.js')
const { nodeMajor } = require('../../lib/core/util')

if (nodeMajor === 16) {
skip('esbuild uses static blocks with --keep-names which node 16.8 does not have')
process.exit()
}

const nodeBuild = require('../../undici-fetch.js')

test('user-agent defaults correctly', async (t) => {
const server = http.createServer((req, res) => {
res.end(JSON.stringify({ userAgentHeader: req.headers['user-agent'] }))
Expand Down

0 comments on commit 476ce9b

Please sign in to comment.