2016-06-27 15:27:23 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class MockBackend implements ConnectionBackend {
|
|
|
|
connections: any;
|
|
|
|
connectionsArray: MockConnection[];
|
|
|
|
pendingConnections: any;
|
|
|
|
constructor();
|
|
|
|
createConnection(req: Request): MockConnection;
|
2016-06-23 21:19:32 -04:00
|
|
|
resolveAllConnections(): void;
|
|
|
|
verifyNoPendingRequests(): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
2016-06-27 15:27:23 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class MockConnection implements Connection {
|
|
|
|
readyState: ReadyState;
|
|
|
|
request: Request;
|
|
|
|
response: ReplaySubject<Response>;
|
|
|
|
constructor(req: Request);
|
|
|
|
mockDownload(res: Response): void;
|
|
|
|
mockError(err?: Error): void;
|
2016-06-23 21:19:32 -04:00
|
|
|
mockRespond(res: Response): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|