Adding div as mapping, since div cannot be descendant of p

This commit is contained in:
Belén Curcio
2018-09-17 11:04:47 -03:00
parent 601436cf99
commit 5bf6161e46
2 changed files with 2 additions and 1 deletions
@@ -24,7 +24,7 @@ const HistoryComment: StatelessComponent<CommentHistoryProps> = props => {
return (
<HorizontalGutter>
<Flex direction="row" justifyContent="space-between">
<Typography variant="bodyCopy">
<Typography variant="bodyCopy" headlineMapping={{ bodyCopy: "div" }}>
{props.comment.body && (
<HTMLContent>{props.comment.body}</HTMLContent>
)}
@@ -59,6 +59,7 @@ it("show all comments", async () => {
const mockEvent = {
preventDefault: sinon.mock().once(),
};
testRenderer.root
.findByProps({
id: "talk-comments-permalinkView-showAllComments",