export interface NgMatchers
export interface NgMatchers
exported from angular2/testing defined in angular2/src/testing/matchers.ts (line 3)
Jasmine matchers that check Angular specific conditions.
Members
toBePromise() : boolean
toBePromise() : boolean
Expect the value to be a Promise
.
toBeAnInstanceOf(expected: any) : boolean
toBeAnInstanceOf(expected: any) : boolean
Expect the value to be an instance of a class.
toHaveText(expected: any) : boolean
toHaveText(expected: any) : boolean
Expect the element to have exactly the given text.
toHaveCssClass(expected: any) : boolean
toHaveCssClass(expected: any) : boolean
Expect the element to have the given CSS class.
toHaveCssStyle(expected: any) : boolean
toHaveCssStyle(expected: any) : boolean
Expect the element to have the given CSS styles.
toImplement(expected: any) : boolean
toImplement(expected: any) : boolean
Expect a class to implement the interface of the given class.
toContainError(expected: any) : boolean
toContainError(expected: any) : boolean
Expect an exception to contain the given error text.
toThrowErrorWith(expectedMessage: any) : boolean
toThrowErrorWith(expectedMessage: any) : boolean
Expect a function to throw an error with the given error text when executed.
not : NgMatchers
not : NgMatchers
Invert the matchers.