mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
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:
+10
@@ -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" />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user