Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 528142c

Browse files
committed
2 parents 138bfed + 1bf0315 commit 528142c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/integrations/react/test/parsed-react-children.test.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@ describe('experimental react children', () => {
88
assert.deepStrictEqual(imgVNode.props.children, undefined);
99
});
1010

11-
it('has undefined as children for nested children', () => {
11+
it('does not use dangerouslySetInnerHTML', () => {
12+
const [imgVNode] = convert('<img></img><img></img><img></img>');
13+
assert.ok(!imgVNode.props.hasOwnProperty('dangerouslySetInnerHTML'));
14+
});
15+
16+
it('has no children property for nested children', () => {
1217
const [divVNode] = convert('<div><img src="xyz"></img></div>');
1318
const [imgVNode] = divVNode.props.children;
1419
assert.deepStrictEqual(imgVNode.props.children, undefined);

0 commit comments

Comments
 (0)