Skip to content

Commit

Permalink
fix(prefer-comparison-matcher): Fix typo in docs
Browse files Browse the repository at this point in the history
Fixes #343
  • Loading branch information
mskelton committed Dec 31, 2024
1 parent 53df693 commit c269371
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/rules/prefer-comparison-matcher.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ const testComparisonOperator = (
preferredMatcher: string,
preferredMatcherWhenNegated: string,
) => {
runRuleTester(`prefer-comparision-matcher: ${operator}`, rule, {
runRuleTester(`prefer-comparison-matcher: ${operator}`, rule, {
invalid: [...equalityMatchers.keys()].reduce<RuleTester.InvalidTestCase[]>(
(cases, equalityMatcher) => [
...cases,
Expand Down Expand Up @@ -275,7 +275,7 @@ testComparisonOperator('<', 'toBeLessThan', 'toBeGreaterThanOrEqual')
testComparisonOperator('>=', 'toBeGreaterThanOrEqual', 'toBeLessThan')
testComparisonOperator('<=', 'toBeLessThanOrEqual', 'toBeGreaterThan')

runRuleTester('prefer-comparision-matcher', rule, {
runRuleTester('prefer-comparison-matcher', rule, {
invalid: [],
valid: [
'expect(true).toBe(...true)',
Expand Down
2 changes: 1 addition & 1 deletion src/rules/prefer-comparison-matcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export default createRule({
category: 'Best Practices',
description: 'Suggest using the built-in comparison matchers',
recommended: false,
url: 'https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/prefer-comparision-matcher.md',
url: 'https://github.com/playwright-community/eslint-plugin-playwright/tree/main/docs/rules/prefer-comparison-matcher.md',
},
fixable: 'code',
messages: {
Expand Down

0 comments on commit c269371

Please sign in to comment.