| 27 | |
| 28 | it('should inject CSS into Shadow Root', async () => { |
| 29 | @component({ |
| 30 | tagName: 'x-second', |
| 31 | mode: 'open' |
| 32 | }) |
| 33 | class XSecond extends HTMLElement { |
| 34 | private innerStyle = stringifyCSS({ |
| 35 | h2: { color: 'red' } |
| 36 | }); |
| 37 | |
| 38 | render() { |
| 39 | return ( |
| 40 | <> |
| 41 | <style>{this.innerStyle}</style> |
| 42 | <h2 /> |
| 43 | </> |
| 44 | ); |
| 45 | } |
| 46 | } |
| 47 | renderer.render(<XSecond />); |
| 48 | |
| 49 | await sleep(); |
nothing calls this directly
no test coverage detected