From f3db15a47d830956804cc963d30f4f17b60110dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jind=C5=99ich=20B=C3=A4r?= Date: Thu, 1 Feb 2024 13:44:53 +0100 Subject: [PATCH] chore: fix tests --- test/proxy.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/proxy.test.ts b/test/proxy.test.ts index 9ec5de0..27a1ba9 100644 --- a/test/proxy.test.ts +++ b/test/proxy.test.ts @@ -4,6 +4,7 @@ import { jest } from '@jest/globals'; import { HttpsProxyAgent, HttpRegularProxyAgent, + HttpProxyAgent, } from '../src/agent/h1-proxy-agent.js'; import { proxyHook } from '../src/hooks/proxy.js'; @@ -96,7 +97,7 @@ describe('Proxy', () => { const { agent } = options; expect(agent.http).toBeInstanceOf(TransformHeadersAgent); - expect((agent.http as any).agent).toBeInstanceOf(HttpRegularProxyAgent); + expect((agent.http as any).agent).toBeInstanceOf(HttpProxyAgent); }); test('should support https request over https proxy', async () => {