Skip to content

Commit e2e4291

Browse files
committed
refactor(prefer-in-document): edit wording assertion -> matcher
1 parent 4ab0689 commit e2e4291

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/__tests__/lib/rules/prefer-in-document.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
},

src/rules/prefer-in-document.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
// | ============= | =========================== | ===================================== |

0 commit comments

Comments
 (0)