.\n' +
' in li (at **)\n' +
' in div (at **)\n' +
' in li (at **)\n' +
' in ul (at **)',
],
);
expectWarnings(
['div', 'html'],
[
'validateDOMNesting(...): cannot appear as a child of .\n' +
' in html (at **)',
],
);
expectWarnings(
['body', 'body'],
[
'render(): Rendering components directly into document.body is discouraged',
'validateDOMNesting(...): cannot appear as a child of .\n' +
' in body (at **)',
],
1,
);
expectWarnings(
['svg', 'foreignObject', 'body', 'p'],
[
'validateDOMNesting(...): cannot appear as a child of .\n' +
' in body (at **)\n' +
' in foreignObject (at **)',
],
);
});
});