UNPKG

@angular-package/testing

Version:

Jasmine unit testing wrapper with additional custom testing features.

8 lines (7 loc) 706 B
import { TestingCore } from '../testing-core.abstract'; import { ExpectType } from '../../type'; export declare class TestingItToThrow<Descriptions extends string = string, Expectations extends string = string> extends TestingCore<Descriptions, Expectations> { error<T extends jasmine.Func>(actual: ExpectType<T>, message?: string | RegExp, expectation?: string, expectationFailOutput?: any, execute?: boolean): this; matching<T>(actual: ExpectType<T>, predicate: (thrown: any) => boolean, expectation?: string, expectationFailOutput?: any, execute?: boolean): this; throw<T>(actual: ExpectType<T>, expected?: any, expectation?: string, expectationFailOutput?: any, execute?: boolean): this; }