Description: fix for node-proxy >= 2 Author: Yadd Forwarded: not-needed Last-Update: 2023-11-23 --- a/test/proxy-agent.js +++ b/test/proxy-agent.js @@ -10,7 +10,7 @@ const Pool = require('../lib/pool') const { createServer } = require('http') const https = require('https') -const proxy = require('proxy') +const proxy = require('proxy').createProxy test('should throw error when no uri is provided', (t) => { t.plan(2) --- a/test/proxy.js +++ b/test/proxy.js @@ -3,7 +3,7 @@ const { test } = require('tap') const { Client, Pool } = require('..') const { createServer } = require('http') -const proxy = require('proxy') +const proxy = require('proxy').createProxy test('connect through proxy', async (t) => { t.plan(3)