Skip to content

Commit

Permalink
Change test cases to fit comment in jsx-eslint#1334
Browse files Browse the repository at this point in the history
  • Loading branch information
yacinehmito committed May 9, 2020
1 parent 5949372 commit 19f3f48
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions tests/lib/rules/jsx-pascal-case.js
Expand Up @@ -79,10 +79,6 @@ ruleTester.run('jsx-pascal-case', rule, {
code: '<_ />'
}, {
code: '<div />'
}, {
code: '<svg:path />'
}, {
code: '<foo.bar />'
}, {
code: '<IGNORED />',
options: [{ignore: ['IGNORED']}]
Expand All @@ -103,6 +99,9 @@ ruleTester.run('jsx-pascal-case', rule, {
}, {
code: '<$a />',
errors: [{message: 'Imported JSX component $a must be in PascalCase'}]
}, {
code: '<foo.bar />',
errors: [{message: 'Imported JSX component bar must be in PascalCase'}]
}, {
code: '<object.testComponent />',
errors: [{message: 'Imported JSX component testComponent must be in PascalCase'}]
Expand All @@ -112,12 +111,15 @@ ruleTester.run('jsx-pascal-case', rule, {
}, {
code: '<__this.testComponent />',
errors: [{message: 'Imported JSX component testComponent must be in PascalCase'}]
}, {
code: '<svg:path />',
errors: [{message: 'Imported JSX component svg:path must be in PascalCase'}]
}, {
code: '<ns:testComponent />',
errors: [{message: 'Imported JSX component ns:testComponent must be in PascalCase'}]
}, {
code: '<Ns:testComponent />',
errors: [{message: 'Imported JSX component _Ns:testComponent must be in PascalCase'}]
errors: [{message: 'Imported JSX component Ns:testComponent must be in PascalCase'}]
}, {
code: '<__ns:testComponent />',
errors: [{message: 'Imported JSX component __ns:testComponent must be in PascalCase'}]
Expand Down

0 comments on commit 19f3f48

Please sign in to comment.