From ec539c2dae9aebbf5ab64980a62cd91a6d7a9d1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bel=C3=A9n=20Curcio?= Date: Mon, 8 Oct 2018 15:01:34 -0300 Subject: [PATCH] Tests updated --- .../__snapshots__/loadMore.spec.tsx.snap | 2 +- .../__snapshots__/permalinkView.spec.tsx.snap | 2 +- .../permalinkViewAssetNotFound.spec.tsx.snap | 37 ++++++++++++++++++- ...permalinkViewCommentNotFound.spec.tsx.snap | 2 +- .../showAllReplies.spec.tsx.snap | 2 +- src/core/client/stream/test/create.tsx | 4 +- 6 files changed, 41 insertions(+), 8 deletions(-) diff --git a/src/core/client/stream/test/comments/__snapshots__/loadMore.spec.tsx.snap b/src/core/client/stream/test/comments/__snapshots__/loadMore.spec.tsx.snap index 9fe9c83bd..1bf5a0a05 100644 --- a/src/core/client/stream/test/comments/__snapshots__/loadMore.spec.tsx.snap +++ b/src/core/client/stream/test/comments/__snapshots__/loadMore.spec.tsx.snap @@ -27,7 +27,7 @@ exports[`loads more comments 1`] = ` role="tab" type="button" > - ⁨6⁩ Comments + ⁨2⁩ 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 aaab7f1d2..dc408c24e 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 @@ -158,7 +158,7 @@ exports[`show all comments 1`] = ` role="tab" type="button" > - ⁨6⁩ Comments + ⁨2⁩ 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 1099468ac..209fbe533 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 @@ -1,7 +1,40 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`renders permalink view with unknown asset 1`] = ` -
- Asset not found +
+
    + + + +
+
+
+ Asset not found +
+
`; 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 18657738a..a38d7cbb8 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 @@ -93,7 +93,7 @@ exports[`show all comments 1`] = ` role="tab" type="button" > - ⁨6⁩ Comments + ⁨2⁩ 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 84fc3d4eb..1043bdc40 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 @@ -389,7 +389,7 @@ exports[`show all replies 1`] = ` role="tab" type="button" > - ⁨6⁩ Comments + ⁨2⁩ Comments diff --git a/src/core/client/stream/test/create.tsx b/src/core/client/stream/test/create.tsx index 4f32b73c7..432d9800a 100644 --- a/src/core/client/stream/test/create.tsx +++ b/src/core/client/stream/test/create.tsx @@ -15,7 +15,7 @@ import createEnvironment from "./createEnvironment"; import createFluentBundle from "./createFluentBundle"; import createNodeMock from "./createNodeMock"; -import AppQuery from "../queries/AppQuery"; +import AppContainer from "../containers/AppContainer"; export interface CreateParams { logNetwork?: boolean; @@ -54,7 +54,7 @@ export default function create(params: CreateParams) { const testRenderer = TestRenderer.create( - + , { createNodeMock } );