well seems like no socks on bun

This commit is contained in:
Bojan Kucera 2025-06-08 00:01:27 -04:00
parent 93578bd030
commit 6380165a94
6 changed files with 116 additions and 137 deletions

View file

@ -141,10 +141,9 @@ describe('ProxyManager', () => {
host: 'proxy.example.com',
port: 8080,
username: 'user',
password: 'pass'
};
password: 'pass' };
const proxyUrl = ProxyManager.createBunProxyUrl(proxy);
const proxyUrl = ProxyManager.createProxyUrl(proxy);
expect(proxyUrl).toBe('http://user:pass@proxy.example.com:8080');
});
@ -152,10 +151,9 @@ describe('ProxyManager', () => {
const proxy: ProxyInfo = {
protocol: 'https',
host: 'proxy.example.com',
port: 8080
};
port: 8080 };
const proxyUrl = ProxyManager.createBunProxyUrl(proxy);
const proxyUrl = ProxyManager.createProxyUrl(proxy);
expect(proxyUrl).toBe('https://proxy.example.com:8080');
});
});