Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
StandardGage committed Feb 2, 2024
2 parents 138bfed + 1bf0315 commit 528142c
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ describe('experimental react children', () => {
assert.deepStrictEqual(imgVNode.props.children, undefined);
});

it('has undefined as children for nested children', () => {
it('does not use dangerouslySetInnerHTML', () => {
const [imgVNode] = convert('<img></img><img></img><img></img>');
assert.ok(!imgVNode.props.hasOwnProperty('dangerouslySetInnerHTML'));
});

it('has no children property for nested children', () => {
const [divVNode] = convert('<div><img src="xyz"></img></div>');
const [imgVNode] = divVNode.props.children;
assert.deepStrictEqual(imgVNode.props.children, undefined);
Expand Down

0 comments on commit 528142c

Please sign in to comment.