well seems like no socks on bun
This commit is contained in:
parent
93578bd030
commit
6380165a94
6 changed files with 116 additions and 137 deletions
|
|
@ -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');
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue