diff --git a/test/fetch/user-agent.js b/test/fetch/user-agent.js index 8c6f486d4f2..2e37ea5883d 100644 --- a/test/fetch/user-agent.js +++ b/test/fetch/user-agent.js @@ -4,7 +4,6 @@ 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) { @@ -12,6 +11,8 @@ if (nodeMajor === 16) { 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'] }))