UNPKG

@angular-package/testing

Version:

Jasmine unit testing wrapper with additional custom testing features.

19 lines (18 loc) 933 B
import { Expect } from '../expect.class'; import { TestingExpect } from '../testing-expect.class'; import { TestingExpectToBe } from './testing-expect-to-be.class'; import { TestingExpectToHave } from './testing-expect-to-have.class'; import { TestingExpectToThrow } from './testing-expect-to-throw.class'; import { ExpectType } from '../../type/expect-type.type'; export declare class TestingExpectTo extends Expect { get be(): TestingExpectToBe; get have(): TestingExpectToHave; get throw(): TestingExpectToThrow; private toBe; private toHave; private toThrow; constructor(expect?: TestingExpect); contain<T>(actual: ExpectType<T>, expected: any, expectationFailOutput?: any): this; equal<T>(actual: ExpectType<T>, expected: jasmine.Expected<typeof actual>, expectationFailOutput?: any): this; match<T>(actual: ExpectType<T>, expected: string | RegExp, expectationFailOutput?: any): this; }