This commit is contained in:
Boki 2025-06-25 11:38:23 -04:00
parent 3a7254708e
commit b63e58784c
41 changed files with 5762 additions and 4477 deletions

View file

@ -1,10 +1,10 @@
import { beforeEach, describe, expect, it, mock } from 'bun:test';
import { SimpleProxyManager } from '../src/simple-proxy-manager';
import type { ProxyConfig, ProxyInfo } from '../src/types';
import type { ProxyInfo } from '../src/types';
describe('ProxyManager', () => {
let manager: SimpleProxyManager;
const getMockProxies = (): ProxyInfo[] => [
{
id: 'proxy1',
@ -193,7 +193,7 @@ describe('ProxyManager', () => {
it('should validate all proxies', async () => {
const mockProxies = getMockProxies();
// Mock fetch to return different results for each proxy
let callCount = 0;
const mockFetch = mock(() => {
@ -251,4 +251,4 @@ describe('ProxyManager', () => {
expect(proxies).toHaveLength(0);
});
});
});
});