Files
DefinitelyTyped/knockout/tests/jasmine.extensions.d.ts
Tanguy Krotoff d2dd0dbfc7 Improve jasmine.d.ts
- Remove toContainHtml() and toContainText(): they are not part of Jasmine API
- Avoid the use of any for toMatch(), toBeLessThan(), toBeGreaterThan(), toBeCloseTo() and toThrowError()
2015-12-18 05:09:35 +01:00

11 lines
406 B
TypeScript

// Knockout specs depend on custom Jasmine matchers
// See https://github.com/knockout/knockout/blob/v3.4.0/spec/lib/jasmine.extensions.js
// FYI jasmine-jquery.d.ts (https://github.com/velesin/jasmine-jquery) also defines toContainHtml() and toContainText()
declare module jasmine {
interface Matchers {
toContainHtml(expected: string): boolean;
toContainText(expected: string): boolean;
}
}