Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzlopak committed Dec 29, 2024
1 parent 013c948 commit a6811f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/fix-GHSA-v2v2-hph8-q5xp.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const { describe, after, it } = require('node:test')
const fastify = require('fastify')
const fastifyFrom = require('..')
const fastifyProxyFrom = require('..')
const { isIPv6 } = require('node:net')

describe('GHSA-v2v2-hph8-q5xp', function () {
Expand All @@ -27,7 +27,7 @@ describe('GHSA-v2v2-hph8-q5xp', function () {
}

const app = fastify()
app.register(fastifyFrom)
app.register(fastifyProxyFrom)

app.post('/test', (request, reply) => {
if (request.body.method === 'invalid_method') {
Expand Down
4 changes: 2 additions & 2 deletions test/undici-proxy-agent.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const { test, after } = require('node:test')
const { createServer } = require('node:http')
const Fastify = require('fastify')
const { createProxy } = require('proxy')
const fastifyFrom = require('..')
const fastifyProxyFrom = require('..')
const { isIPv6 } = require('node:net')

const configFormat = {
Expand Down Expand Up @@ -55,7 +55,7 @@ for (const [description, format] of Object.entries(configFormat)) {
instance.close()
})

instance.register(fastifyFrom, {
instance.register(fastifyProxyFrom, {
base: targetUrl,
undici: {
proxy: format(proxyUrl)
Expand Down

0 comments on commit a6811f0

Please sign in to comment.