File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ function invalidCaseWithSuggestions(
3030 code ,
3131 messageData ,
3232 replaceQueryOutput ,
33- replaceAssertionOutput
33+ replaceMatcherOutput
3434) {
3535 return {
3636 code,
@@ -45,7 +45,7 @@ function invalidCaseWithSuggestions(
4545 } ,
4646 {
4747 desc : "Replace .toHaveLength(1) with .toBeInTheDocument()" ,
48- output : replaceAssertionOutput ,
48+ output : replaceMatcherOutput ,
4949 } ,
5050 ] ,
5151 } ,
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ export const create = (context) => {
9898 // only report on dom nodes which we can resolve to RTL queries.
9999 if ( ! queryNode || ( ! queryNode . name && ! queryNode . property ) ) return ;
100100
101- // *By* query with .toHaveLength(0/1) assertions are considered violations
101+ // *By* query with .toHaveLength(0/1) matcher are considered violations
102102 //
103103 // | Selector type | .toHaveLength(1) | .toHaveLength(0) |
104104 // | ============= | =========================== | ===================================== |
You can’t perform that action at this time.
0 commit comments