mirror of
https://github.com/bendtherules/react-fiber-traverse.git
synced 2026-08-18 13:52:36 +00:00
Fix prettier on all files
This commit is contained in:
@@ -85,7 +85,7 @@ describe("findNodeByComponentName", () => {
|
||||
const rootNode = mountAndGetRootNode(WrappedC, container);
|
||||
|
||||
const foundFnDepth1 = findNodeByComponentName(rootNode, FnDepth1.name);
|
||||
const foundInner = findNodeByComponentName(foundFnDepth1, 'someName');
|
||||
const foundInner = findNodeByComponentName(foundFnDepth1, "someName");
|
||||
|
||||
expect(foundInner).toBeFalsy();
|
||||
expect(foundInner).toBe(null);
|
||||
@@ -96,7 +96,12 @@ describe("findNodeByComponentName", () => {
|
||||
return <Fn2 />;
|
||||
}
|
||||
function Fn2() {
|
||||
return <div>Fn2 here<Fn3/></div>;
|
||||
return (
|
||||
<div>
|
||||
Fn2 here
|
||||
<Fn3 />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
function Fn3() {
|
||||
return <div>Fn3 here</div>;
|
||||
|
||||
Reference in New Issue
Block a user