Skip to content

Commit dddf6c2

Browse files
committed
fixup! [New] Add testing scaffolding for Components util
1 parent 8c39df4 commit dddf6c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/util/Component.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ describe('Components', () => {
4141
testComponentsDetect({
4242
code: `import React from 'react'
4343
function MyStatelessComponent() {
44-
return <></>
44+
return <React.Fragment />
4545
}`,
4646
}, (_context, components) => {
4747
assert(components.length() === 1, 'MyStatelessComponent should be detected component');
@@ -59,7 +59,7 @@ describe('Components', () => {
5959
code: `import React from 'react'
6060
class MyClassComponent extends React.Component {
6161
render() {
62-
return <></>
62+
return <React.Fragment />
6363
}
6464
}`,
6565
}, (_context, components) => {

0 commit comments

Comments
 (0)