UNPKG

ngx-testing-tools

Version:
22 lines (21 loc) 920 B
import { PipeTransform, Type } from '@angular/core'; import { PipeTestBed, PipeTestBedOptions } from './models'; /** * Creates a new `PipeTestBed` to configure the custom test bed and wrap the assertion test. * @param rootPipe - The described Pipe. * @param options */ export declare function pipeTestBed<T extends PipeTransform>(rootPipe: Type<T>, options?: PipeTestBedOptions): PipeTestBed<T>; /** * Only invokes the "should create" test. * * To be used when there are no noticeable or relevant tests to be performed on this pipe. * * The usage of this function and `pipeTestBed` function must be mutually exclusive. * * @param rootPipe - The described Pipe. * @param options */ export declare function itShouldCreatePipe<T extends PipeTransform>(rootPipe: Type<T>, options?: ItShouldCreatePipeOptions): void; type ItShouldCreatePipeOptions = Pick<PipeTestBedOptions, 'providers' | 'imports'>; export {};