UNPKG

@dbg-riskit/angular-testing

Version:

39 lines (38 loc) 1.45 kB
/// <reference types="jasmine" /> import { DebugElement } from '@angular/core'; import { ComponentFixture } from '@angular/core/testing'; import { CSVDownloadMenuComponent } from '@dbg-riskit/angular-file'; import { Observable } from 'rxjs'; import { Page } from './page.base'; import Spy = jasmine.Spy; import * as i0 from "@angular/core"; export declare class CSVDownloadMenuPage extends Page<CSVDownloadMenuComponent> { constructor(fixture: ComponentFixture<CSVDownloadMenuComponent>); get downloadWindowsLink(): DownloadLink; get downloadUnixLink(): DownloadLink; } export declare class DownloadLink { element: DebugElement; private page; private _blobSpy?; private _saveBlobSpy?; constructor(element: DebugElement, page: { detectChanges: () => void; }); click(): void; get blobSpy(): Spy; private setupBlobConstructorSpy; get saveSpy(): Spy; private setupSaveBlobSpy; } export declare class DownloadTestComponent { data: any | Observable<any>; contentType?: string; filename?: string; static ɵfac: i0.ɵɵFactoryDeclaration<DownloadTestComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<DownloadTestComponent, "ng-component", never, {}, {}, never, never>; } export declare class DownloadTestComponentPage extends Page<DownloadTestComponent> { constructor(fixture: ComponentFixture<DownloadTestComponent>); get downloadLink(): DownloadLink; }