import assert from 'node:assert/strict'; import { describe, it } from 'node:test'; import convert from '../vnode-children.js'; describe('experimental react children', () => { it('has undefined as children for direct children', () => { const [imgVNode] = convert(''); assert.deepStrictEqual(imgVNode.props.children, undefined); }); it('has undefined as children for nested children', () => { const [divVNode] = convert('
'); const [imgVNode] = divVNode.props.children; assert.deepStrictEqual(imgVNode.props.children, undefined); }); });