mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-11 11:50:54 +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:
Vendored
+4
-4
@@ -195,8 +195,8 @@ declare module jasmine {
|
||||
* // returns true
|
||||
* expect($('<div><ul></ul><h1>header</h1></div>')).toContainHtml('<ul></ul>')
|
||||
*/
|
||||
//toContainHtml(html: string): boolean;
|
||||
|
||||
toContainHtml(html: string): boolean;
|
||||
|
||||
/**
|
||||
* Check if DOM element has the given Text.
|
||||
* @param text Accepts a string or regular expression
|
||||
@@ -213,8 +213,8 @@ declare module jasmine {
|
||||
* // returns true
|
||||
* expect($('<div><ul></ul><h1>header</h1></div>')).toContainText('header')
|
||||
*/
|
||||
//toContainText(text: string): boolean;
|
||||
|
||||
toContainText(text: string): boolean;
|
||||
|
||||
/**
|
||||
* Check if DOM element has the given value.
|
||||
* This can only be applied for element on with jQuery val() can be called.
|
||||
|
||||
Reference in New Issue
Block a user