File tree Expand file tree Collapse file tree 1 file changed +1
-21
lines changed Expand file tree Collapse file tree 1 file changed +1
-21
lines changed Original file line number Diff line number Diff line change 11declare namespace jest {
2- interface InverseStringAsymmetricMatchers {
3- stringMatching ( str : string | RegExp ) : any
4- stringContaining ( str : string ) : any
5- }
6- interface Expect {
7- stringMatching ( str : string | RegExp ) : any
8- stringContaining ( str : string ) : any
9- anything ( ) : any
10- any ( classType : any ) : any
11- not : InverseStringAsymmetricMatchers
12- }
13-
14- type attributeValueType =
15- | string
16- | Expect . stringContaining
17- | Expect . stringMatching
18- | Expect . any
19- | Expect . anything
20- | Expect . not
21-
222 interface Matchers < R > {
233 /**
244 * @deprecated
@@ -31,7 +11,7 @@ declare namespace jest {
3111 toBeEnabled ( ) : R
3212 toContainElement ( element : HTMLElement | SVGElement | null ) : R
3313 toContainHTML ( htmlText : string ) : R
34- toHaveAttribute ( attr : string , value ?: attributeValueType ) : R
14+ toHaveAttribute ( attr : string , value ?: any ) : R
3515 toHaveClass ( ...classNames : string [ ] ) : R
3616 toHaveFocus ( ) : R
3717 toHaveFormValues ( expectedValues : { [ name : string ] : any } ) : R
You can’t perform that action at this time.
0 commit comments