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 1
1
declare 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
-
22
2
interface Matchers < R > {
23
3
/**
24
4
* @deprecated
@@ -31,7 +11,7 @@ declare namespace jest {
31
11
toBeEnabled ( ) : R
32
12
toContainElement ( element : HTMLElement | SVGElement | null ) : R
33
13
toContainHTML ( htmlText : string ) : R
34
- toHaveAttribute ( attr : string , value ?: attributeValueType ) : R
14
+ toHaveAttribute ( attr : string , value ?: any ) : R
35
15
toHaveClass ( ...classNames : string [ ] ) : R
36
16
toHaveFocus ( ) : R
37
17
toHaveFormValues ( expectedValues : { [ name : string ] : any } ) : R
You can’t perform that action at this time.
0 commit comments