MCPcopy
hub / github.com/preactjs/preact / fn

Function fn

test/browser/fragments.test.jsx:109–117  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

107
108 it('should not crash with null as last child', () => {
109 let fn = () => {
110 render(
111 <Fragment>
112 <span>world</span>
113 {null}
114 </Fragment>,
115 scratch
116 );
117 };
118 expect(fn).not.to.throw();
119 expect(scratch.innerHTML).to.equal('<span>world</span>');
120

Callers 1

ForwardedFunction · 0.50

Calls 1

renderFunction · 0.90

Tested by

no test coverage detected