Skip to content

Commit c269371

Browse files
committed
fix(prefer-comparison-matcher): Fix typo in docs
Fixes #343
1 parent 53df693 commit c269371

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/rules/prefer-comparison-matcher.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ const testComparisonOperator = (
239239
preferredMatcher: string,
240240
preferredMatcherWhenNegated: string,
241241
) => {
242-
runRuleTester(`prefer-comparision-matcher: ${operator}`, rule, {
242+
runRuleTester(`prefer-comparison-matcher: ${operator}`, rule, {
243243
invalid: [...equalityMatchers.keys()].reduce<RuleTester.InvalidTestCase[]>(
244244
(cases, equalityMatcher) => [
245245
...cases,
@@ -275,7 +275,7 @@ testComparisonOperator('<', 'toBeLessThan', 'toBeGreaterThanOrEqual')
275275
testComparisonOperator('>=', 'toBeGreaterThanOrEqual', 'toBeLessThan')
276276
testComparisonOperator('<=', 'toBeLessThanOrEqual', 'toBeGreaterThan')
277277

278-
runRuleTester('prefer-comparision-matcher', rule, {
278+
runRuleTester('prefer-comparison-matcher', rule, {
279279
invalid: [],
280280
valid: [
281281
'expect(true).toBe(...true)',

src/rules/prefer-comparison-matcher.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export default createRule({
115115
category: 'Best Practices',
116116
description: 'Suggest using the built-in comparison matchers',
117117
recommended: false,
118-
url: 'https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/prefer-comparision-matcher.md',
118+
url: 'https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/prefer-comparison-matcher.md',
119119
},
120120
fixable: 'code',
121121
messages: {

0 commit comments

Comments
 (0)