File tree 2 files changed +3
-3
lines changed 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ function invalidCaseWithSuggestions(
30
30
code ,
31
31
messageData ,
32
32
replaceQueryOutput ,
33
- replaceAssertionOutput
33
+ replaceMatcherOutput
34
34
) {
35
35
return {
36
36
code,
@@ -45,7 +45,7 @@ function invalidCaseWithSuggestions(
45
45
} ,
46
46
{
47
47
desc : "Replace .toHaveLength(1) with .toBeInTheDocument()" ,
48
- output : replaceAssertionOutput ,
48
+ output : replaceMatcherOutput ,
49
49
} ,
50
50
] ,
51
51
} ,
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ export const create = (context) => {
98
98
// only report on dom nodes which we can resolve to RTL queries.
99
99
if ( ! queryNode || ( ! queryNode . name && ! queryNode . property ) ) return ;
100
100
101
- // *By* query with .toHaveLength(0/1) assertions are considered violations
101
+ // *By* query with .toHaveLength(0/1) matcher are considered violations
102
102
//
103
103
// | Selector type | .toHaveLength(1) | .toHaveLength(0) |
104
104
// | ============= | =========================== | ===================================== |
You can’t perform that action at this time.
0 commit comments