MCPcopy Create free account
hub / github.com/EasyWebApp/WebCell / XSecond

Class XSecond

test/WebCell.spec.tsx:29–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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();

Callers

nothing calls this directly

Calls 1

componentFunction · 0.90

Tested by

no test coverage detected