()
| 122 | |
| 123 | it('accepts a stateless function as type', () => { |
| 124 | const Parent = () => <Child text="from parent" /> |
| 125 | expect( |
| 126 | convertToObject({ |
| 127 | type: Parent, |
| 128 | props: {}, |
| 129 | }), |
| 130 | ).toEqual({ |
| 131 | type: 'Child', |
| 132 | props: { |
| 133 | text: 'from parent', |
| 134 | }, |
| 135 | }) |
| 136 | }) |
| 137 | |
| 138 | it('supports iterating over children', () => { |
nothing calls this directly
no test coverage detected