From 5bf6161e4695c81f8f44c72c31800eecfb9f6df1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bel=C3=A9n=20Curcio?= Date: Mon, 17 Sep 2018 11:04:47 -0300 Subject: [PATCH] Adding div as mapping, since div cannot be descendant of p --- .../client/stream/tabs/profile/components/HistoryComment.tsx | 2 +- .../stream/test/comments/permalinkViewCommentNotFound.spec.tsx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/client/stream/tabs/profile/components/HistoryComment.tsx b/src/core/client/stream/tabs/profile/components/HistoryComment.tsx index 6af681546..1e9a42833 100644 --- a/src/core/client/stream/tabs/profile/components/HistoryComment.tsx +++ b/src/core/client/stream/tabs/profile/components/HistoryComment.tsx @@ -24,7 +24,7 @@ const HistoryComment: StatelessComponent = props => { return ( - + {props.comment.body && ( {props.comment.body} )} diff --git a/src/core/client/stream/test/comments/permalinkViewCommentNotFound.spec.tsx b/src/core/client/stream/test/comments/permalinkViewCommentNotFound.spec.tsx index 9c4517351..bd05977c3 100644 --- a/src/core/client/stream/test/comments/permalinkViewCommentNotFound.spec.tsx +++ b/src/core/client/stream/test/comments/permalinkViewCommentNotFound.spec.tsx @@ -59,6 +59,7 @@ it("show all comments", async () => { const mockEvent = { preventDefault: sinon.mock().once(), }; + testRenderer.root .findByProps({ id: "talk-comments-permalinkView-showAllComments",