From 476ce9b2143ea614b94275e75417dfa8d8fae7ad Mon Sep 17 00:00:00 2001 From: Khafra Date: Wed, 25 Oct 2023 14:43:07 -0400 Subject: [PATCH] fix --- test/fetch/user-agent.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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'] }))