Skip to content

Commit

Permalink
chore: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
barjin committed Feb 1, 2024
1 parent 081dccc commit f3db15a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/proxy.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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 () => {
Expand Down

0 comments on commit f3db15a

Please sign in to comment.