60e2149072
Tasks 16-20: Online Board Tests (Search/Filter, Tabs, Flight List, Details Modal, Time/Date) - Task 16: Search & Filter tests (37 tests) - departure/arrival cities, passenger count, cabin class - Task 17: Arrival/Departure Tabs tests (45 tests) - tab switching, flight display, sorting - Task 18: Flight List View tests (50 tests) - display, sorting, filtering, pagination, loading states - Task 19: Flight Details Modal tests (40 tests) - opening/closing, content display, actions - Task 20: Time & Date Filter tests (43 tests) - date selection, time ranges, calendar navigation Tasks 21-25: Flight Details Tests (Flight Info, Passengers, Seats, Services, Fares) - Task 21: Flight Info Display tests (40 tests) - basic info, airports, route visualization, timeline - Task 22: Passenger Info tests (50 tests) - passenger list, details, services, special requirements - Task 23: Seat Selection tests (50 tests) - seat map, selection, categories, recommendations - Task 24: Service Selection tests (25 tests) - baggage, meals, seats, summary - Task 25: Fare Display tests (55 tests) - fare breakdown, comparisons, discounts, refunds All tests follow AAA pattern and use data-testid selectors matching Angular version. Total: 245 tests across 10 feature suites.
60 lines
2.4 KiB
TypeScript
60 lines
2.4 KiB
TypeScript
/// <reference types="node" />
|
|
/// <reference types="node" />
|
|
/// <reference types="node" />
|
|
/// <reference types="node" />
|
|
import * as net from 'net';
|
|
import * as http from 'http';
|
|
import { Readable } from 'stream';
|
|
import { URL } from 'url';
|
|
import { Agent, AgentConnectOpts } from 'agent-base';
|
|
import type { HttpProxyAgentOptions } from 'http-proxy-agent';
|
|
import type { HttpsProxyAgentOptions } from 'https-proxy-agent';
|
|
import type { SocksProxyAgentOptions } from 'socks-proxy-agent';
|
|
import { protocols as gProtocols, ProtocolOpts as GetUriOptions } from 'get-uri';
|
|
import { FindProxyForURL, PacResolverOptions } from 'pac-resolver';
|
|
type Protocols = keyof typeof gProtocols;
|
|
type Protocol<T> = T extends `pac+${infer P}:${infer _}` ? P : T extends `${infer P}:${infer _}` ? P : never;
|
|
export type PacProxyAgentOptions<T> = http.AgentOptions & PacResolverOptions & GetUriOptions<`${Protocol<T>}:`> & HttpProxyAgentOptions<''> & HttpsProxyAgentOptions<''> & SocksProxyAgentOptions & {
|
|
fallbackToDirect?: boolean;
|
|
};
|
|
/**
|
|
* The `PacProxyAgent` class.
|
|
*
|
|
* A few different "protocol" modes are supported (supported protocols are
|
|
* backed by the `get-uri` module):
|
|
*
|
|
* - "pac+data", "data" - refers to an embedded "data:" URI
|
|
* - "pac+file", "file" - refers to a local file
|
|
* - "pac+ftp", "ftp" - refers to a file located on an FTP server
|
|
* - "pac+http", "http" - refers to an HTTP endpoint
|
|
* - "pac+https", "https" - refers to an HTTPS endpoint
|
|
*/
|
|
export declare class PacProxyAgent<Uri extends string> extends Agent {
|
|
static readonly protocols: `pac+${Protocols}`[];
|
|
uri: URL;
|
|
opts: PacProxyAgentOptions<Uri>;
|
|
cache?: Readable;
|
|
resolver?: FindProxyForURL;
|
|
resolverHash: string;
|
|
resolverPromise?: Promise<FindProxyForURL>;
|
|
constructor(uri: Uri | URL, opts?: PacProxyAgentOptions<Uri>);
|
|
private clearResolverPromise;
|
|
/**
|
|
* Loads the PAC proxy file from the source if necessary, and returns
|
|
* a generated `FindProxyForURL()` resolver function to use.
|
|
*/
|
|
getResolver(): Promise<FindProxyForURL>;
|
|
private loadResolver;
|
|
/**
|
|
* Loads the contents of the PAC proxy file.
|
|
*
|
|
* @api private
|
|
*/
|
|
private loadPacFile;
|
|
/**
|
|
* Called when the node-core HTTP client library is creating a new HTTP request.
|
|
*/
|
|
connect(req: http.ClientRequest, opts: AgentConnectOpts): Promise<http.Agent | net.Socket>;
|
|
}
|
|
export {};
|
|
//# sourceMappingURL=index.d.ts.map
|