From bd7903fc53c4139460c7564220a0aac67817e82d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bel=C3=A9n=20Curcio?= Date: Thu, 4 Oct 2018 20:27:03 -0300 Subject: [PATCH] Snapshots updated --- src/core/client/stream/components/App.spec.tsx | 9 --------- .../components/__snapshots__/App.spec.tsx.snap | 3 --- .../__snapshots__/editComment.spec.tsx.snap | 14 +++++++------- .../comments/__snapshots__/loadMore.spec.tsx.snap | 4 ++-- .../__snapshots__/permalinkView.spec.tsx.snap | 4 ++-- .../permalinkViewAssetNotFound.spec.tsx.snap | 2 +- .../permalinkViewCommentNotFound.spec.tsx.snap | 4 ++-- .../__snapshots__/postComment.spec.tsx.snap | 6 +++--- .../__snapshots__/postLocalReply.spec.tsx.snap | 8 ++++---- .../comments/__snapshots__/postReply.spec.tsx.snap | 8 ++++---- .../__snapshots__/renderReplies.spec.tsx.snap | 2 +- .../__snapshots__/renderStream.spec.tsx.snap | 2 +- .../__snapshots__/showAllReplies.spec.tsx.snap | 4 ++-- .../__snapshots__/showConversation.spec.tsx.snap | 4 ++-- src/core/client/stream/test/create.tsx | 3 ++- 15 files changed, 33 insertions(+), 44 deletions(-) delete mode 100644 src/core/client/stream/components/App.spec.tsx delete mode 100644 src/core/client/stream/components/__snapshots__/App.spec.tsx.snap diff --git a/src/core/client/stream/components/App.spec.tsx b/src/core/client/stream/components/App.spec.tsx deleted file mode 100644 index 2afc61f74..000000000 --- a/src/core/client/stream/components/App.spec.tsx +++ /dev/null @@ -1,9 +0,0 @@ -import { shallow } from "enzyme"; -import React from "react"; - -import AppContainer from "../containers/AppContainer"; - -it("renders comments", () => { - const wrapper = shallow(); - expect(wrapper).toMatchSnapshot(); -}); diff --git a/src/core/client/stream/components/__snapshots__/App.spec.tsx.snap b/src/core/client/stream/components/__snapshots__/App.spec.tsx.snap deleted file mode 100644 index 9a2441a63..000000000 --- a/src/core/client/stream/components/__snapshots__/App.spec.tsx.snap +++ /dev/null @@ -1,3 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`renders comments 1`] = ``; diff --git a/src/core/client/stream/test/comments/__snapshots__/editComment.spec.tsx.snap b/src/core/client/stream/test/comments/__snapshots__/editComment.spec.tsx.snap index fe4e66dce..a6bae295c 100644 --- a/src/core/client/stream/test/comments/__snapshots__/editComment.spec.tsx.snap +++ b/src/core/client/stream/test/comments/__snapshots__/editComment.spec.tsx.snap @@ -27,7 +27,7 @@ exports[`cancel edit: edit canceled 1`] = ` role="tab" type="button" > - ⁨commentCount⁩ Comments + ⁨6⁩ Comments
  • - ⁨commentCount⁩ Comments + ⁨6⁩ Comments
  • - ⁨commentCount⁩ Comments + ⁨6⁩ Comments
  • - ⁨commentCount⁩ Comments + ⁨6⁩ Comments
  • - ⁨commentCount⁩ Comments + ⁨6⁩ Comments
  • - ⁨commentCount⁩ Comments + ⁨6⁩ Comments
  • - ⁨commentCount⁩ Comments + ⁨6⁩ Comments
  • - ⁨commentCount⁩ Comments + ⁨6⁩ Comments
  • @@ -433,7 +433,7 @@ exports[`renders comment stream 1`] = ` role="tab" type="button" > - ⁨commentCount⁩ Comments + ⁨6⁩ Comments diff --git a/src/core/client/stream/test/comments/__snapshots__/permalinkView.spec.tsx.snap b/src/core/client/stream/test/comments/__snapshots__/permalinkView.spec.tsx.snap index 370974d1e..df6f281c3 100644 --- a/src/core/client/stream/test/comments/__snapshots__/permalinkView.spec.tsx.snap +++ b/src/core/client/stream/test/comments/__snapshots__/permalinkView.spec.tsx.snap @@ -27,7 +27,7 @@ exports[`renders permalink view 1`] = ` role="tab" type="button" > - ⁨commentCount⁩ Comments + ⁨6⁩ Comments @@ -158,7 +158,7 @@ exports[`show all comments 1`] = ` role="tab" type="button" > - ⁨commentCount⁩ Comments + ⁨6⁩ Comments diff --git a/src/core/client/stream/test/comments/__snapshots__/permalinkViewAssetNotFound.spec.tsx.snap b/src/core/client/stream/test/comments/__snapshots__/permalinkViewAssetNotFound.spec.tsx.snap index 7d82a3165..0cc370719 100644 --- a/src/core/client/stream/test/comments/__snapshots__/permalinkViewAssetNotFound.spec.tsx.snap +++ b/src/core/client/stream/test/comments/__snapshots__/permalinkViewAssetNotFound.spec.tsx.snap @@ -27,7 +27,7 @@ exports[`renders permalink view with unknown asset 1`] = ` role="tab" type="button" > - ⁨commentCount⁩ Comments + ⁨6⁩ Comments diff --git a/src/core/client/stream/test/comments/__snapshots__/permalinkViewCommentNotFound.spec.tsx.snap b/src/core/client/stream/test/comments/__snapshots__/permalinkViewCommentNotFound.spec.tsx.snap index 278440fe4..7da665351 100644 --- a/src/core/client/stream/test/comments/__snapshots__/permalinkViewCommentNotFound.spec.tsx.snap +++ b/src/core/client/stream/test/comments/__snapshots__/permalinkViewCommentNotFound.spec.tsx.snap @@ -27,7 +27,7 @@ exports[`renders permalink view with unknown comment 1`] = ` role="tab" type="button" > - ⁨commentCount⁩ Comments + ⁨6⁩ Comments @@ -93,7 +93,7 @@ exports[`show all comments 1`] = ` role="tab" type="button" > - ⁨commentCount⁩ Comments + ⁨6⁩ Comments diff --git a/src/core/client/stream/test/comments/__snapshots__/postComment.spec.tsx.snap b/src/core/client/stream/test/comments/__snapshots__/postComment.spec.tsx.snap index ebeb37d9e..ee6a14314 100644 --- a/src/core/client/stream/test/comments/__snapshots__/postComment.spec.tsx.snap +++ b/src/core/client/stream/test/comments/__snapshots__/postComment.spec.tsx.snap @@ -27,7 +27,7 @@ exports[`post a comment: optimistic response 1`] = ` role="tab" type="button" > - ⁨commentCount⁩ Comments + ⁨6⁩ Comments
  • - ⁨commentCount⁩ Comments + ⁨6⁩ Comments
  • - ⁨commentCount⁩ Comments + ⁨6⁩ Comments
  • - ⁨commentCount⁩ Comments + ⁨6⁩ Comments
  • - ⁨commentCount⁩ Comments + ⁨6⁩ Comments
  • - ⁨commentCount⁩ Comments + ⁨6⁩ Comments
  • - ⁨commentCount⁩ Comments + ⁨6⁩ Comments
  • - ⁨commentCount⁩ Comments + ⁨6⁩ Comments
  • - ⁨commentCount⁩ Comments + ⁨6⁩ Comments
  • - ⁨commentCount⁩ Comments + ⁨6⁩ Comments
  • - ⁨commentCount⁩ Comments + ⁨6⁩ Comments
  • - ⁨commentCount⁩ Comments + ⁨6⁩ Comments
  • diff --git a/src/core/client/stream/test/comments/__snapshots__/renderStream.spec.tsx.snap b/src/core/client/stream/test/comments/__snapshots__/renderStream.spec.tsx.snap index 0d04969ea..5672d8ad6 100644 --- a/src/core/client/stream/test/comments/__snapshots__/renderStream.spec.tsx.snap +++ b/src/core/client/stream/test/comments/__snapshots__/renderStream.spec.tsx.snap @@ -27,7 +27,7 @@ exports[`renders comment stream 1`] = ` role="tab" type="button" > - ⁨commentCount⁩ Comments + ⁨6⁩ Comments diff --git a/src/core/client/stream/test/comments/__snapshots__/showAllReplies.spec.tsx.snap b/src/core/client/stream/test/comments/__snapshots__/showAllReplies.spec.tsx.snap index b2eecc114..cf6642c00 100644 --- a/src/core/client/stream/test/comments/__snapshots__/showAllReplies.spec.tsx.snap +++ b/src/core/client/stream/test/comments/__snapshots__/showAllReplies.spec.tsx.snap @@ -27,7 +27,7 @@ exports[`renders comment stream 1`] = ` role="tab" type="button" > - ⁨commentCount⁩ Comments + ⁨6⁩ Comments @@ -389,7 +389,7 @@ exports[`show all replies 1`] = ` role="tab" type="button" > - ⁨commentCount⁩ Comments + ⁨6⁩ Comments diff --git a/src/core/client/stream/test/comments/__snapshots__/showConversation.spec.tsx.snap b/src/core/client/stream/test/comments/__snapshots__/showConversation.spec.tsx.snap index e953357d3..87d570681 100644 --- a/src/core/client/stream/test/comments/__snapshots__/showConversation.spec.tsx.snap +++ b/src/core/client/stream/test/comments/__snapshots__/showConversation.spec.tsx.snap @@ -27,7 +27,7 @@ exports[`renders comment stream 1`] = ` role="tab" type="button" > - ⁨commentCount⁩ Comments + ⁨6⁩ Comments @@ -701,7 +701,7 @@ exports[`shows conversation 1`] = ` role="tab" type="button" > - ⁨commentCount⁩ Comments + ⁨6⁩ Comments diff --git a/src/core/client/stream/test/create.tsx b/src/core/client/stream/test/create.tsx index f105162c4..486f01422 100644 --- a/src/core/client/stream/test/create.tsx +++ b/src/core/client/stream/test/create.tsx @@ -15,6 +15,7 @@ import AppContainer from "talk-stream/containers/AppContainer"; import createEnvironment from "./createEnvironment"; import createFluentBundle from "./createFluentBundle"; import createNodeMock from "./createNodeMock"; +import { comments } from "./fixtures"; export interface CreateParams { logNetwork?: boolean; @@ -53,7 +54,7 @@ export default function create(params: CreateParams) { const testRenderer = TestRenderer.create( - + , { createNodeMock } );