@angular-package/testing
Version:
Jasmine unit testing wrapper with additional custom testing features.
8 lines (7 loc) • 481 B
TypeScript
import { Expect } from '../expect.class';
import { ExpectType } from '../../type/expect-type.type';
export declare class TestingExpectToThrow extends Expect {
error<T extends jasmine.Func>(actual: ExpectType<T>, message?: string | RegExp, expectationFailOutput?: any): this;
matching<T>(actual: ExpectType<T>, predicate: (thrown: any) => boolean, expectationFailOutput?: any): this;
throw<T>(actual: ExpectType<T>, expected?: any, expectationFailOutput?: any): this;
}