Skip to content

Commit

Permalink
fixup! [New] Add testing scaffolding for Components util
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanbeevers committed Nov 28, 2021
1 parent 8c39df4 commit dddf6c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/util/Component.js
Expand Up @@ -41,7 +41,7 @@ describe('Components', () => {
testComponentsDetect({
code: `import React from 'react'
function MyStatelessComponent() {
return <></>
return <React.Fragment />
}`,
}, (_context, components) => {
assert(components.length() === 1, 'MyStatelessComponent should be detected component');
Expand All @@ -59,7 +59,7 @@ describe('Components', () => {
code: `import React from 'react'
class MyClassComponent extends React.Component {
render() {
return <></>
return <React.Fragment />
}
}`,
}, (_context, components) => {
Expand Down

0 comments on commit dddf6c2

Please sign in to comment.