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()
This commit is contained in:
Tanguy Krotoff
2015-12-18 05:09:35 +01:00
parent 40c60850ad
commit d2dd0dbfc7
4 changed files with 21 additions and 11 deletions
+10
View File
@@ -0,0 +1,10 @@
// 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;
}
}
@@ -1,4 +1,5 @@
/// <reference path="../../jasmine/jasmine.d.ts" />
/// <reference path="jasmine.extensions.d.ts" />
/// <reference path="../knockout.d.ts" />
/// <reference path="../../knockout.mapping/knockout.mapping.d.ts" />