(props, ref)
| 284 | } |
| 285 | |
| 286 | function AmpElementWithRef(props, ref) { |
| 287 | useLayoutEffect(() => { |
| 288 | const element = ref.current; |
| 289 | stubAmpElement(element); |
| 290 | }, [ref]); |
| 291 | return <amp-element ref={ref} {...props} />; |
| 292 | } |
| 293 | |
| 294 | it('should load AMP elements on mount', () => { |
| 295 | const child1 = child1Ref.current; |
nothing calls this directly
no test coverage detected