Skip to content

Commit

Permalink
[tests] displayName: add a test case
Browse files Browse the repository at this point in the history
  • Loading branch information
golopot committed Mar 15, 2020
1 parent fa863ce commit 2417997
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/lib/rules/display-name.js
Expand Up @@ -189,6 +189,13 @@ ruleTester.run('display-name', rule, {
}
`,
parser: parsers.BABEL_ESLINT
}, {
code: `
export const Hello = React.memo(function Hello() {
return <p />;
})
`,
parser: parsers.BABEL_ESLINT
}, {
code: `
var Hello = function() {
Expand Down

0 comments on commit 2417997

Please sign in to comment.