ngx-testing-tools
Version:
Makes Angular testing easier
6 lines (5 loc) • 504 B
TypeScript
import { Type } from '@angular/core';
import { ComponentFixture } from '@angular/core/testing';
export declare function findElement<T extends HTMLElement = HTMLElement>(fixture: ComponentFixture<any>, selector: string): T;
export declare function findElement<T extends HTMLElement = HTMLElement>(fixture: ComponentFixture<any>, directive: Type<any>): T;
export declare function findElement<T extends HTMLElement = HTMLElement>(fixture: ComponentFixture<any>, selectorOrDirective: string | Type<any>): T;