import { expect } from 'chai'; import convert from '../vnode-children.js'; describe('experimental react children', () => { it('has undefined as children for direct children', () => { const [imgVNode] = convert(''); expect(imgVNode.props).to.deep.include({ children: undefined }); }); it('has undefined as children for nested children', () => { const [divVNode] = convert('
'); const [imgVNode] = divVNode.props.children; expect(imgVNode.props).to.deep.include({ children: undefined }); }); });