UNPKG

ngx-testing-tools

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