UNPKG

@angular-package/testing

Version:

Jasmine unit testing wrapper with additional custom testing features.

16 lines (15 loc) 750 B
import { TestingExpect } from "./testing-expect.class"; import { ExpectType } from "../type"; export declare class Expect { #private; get already(): this; get not(): this; constructor(expect?: TestingExpect); expect<T>(actual: ExpectType<T>, expectationFailOutput?: any): jasmine.Matchers<ExpectType<T>>; protected expectation<T>(actual: ExpectType<T>, callbackfn: (matchers: jasmine.Matchers<ExpectType<T>>) => any, expectationFailOutput?: any): this; expectAsync<T, U>(actual: T | PromiseLike<T>, expectationFailOutput?: any, not?: boolean, already?: boolean): jasmine.AsyncMatchers<T, U>; getAlready(): TestingExpect; getNot(): boolean; setAlready(already: boolean): this; setNot(not: boolean): this; }