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