From 7dedf2c129c2b0d80c3689d0d80055c4dc2e27cb Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Fri, 3 Aug 2018 18:24:44 +0200 Subject: [PATCH] Update tests --- .../client/embed/decorators/withSetCommentID.spec.ts | 4 ++-- .../components/__snapshots__/Stream.spec.tsx.snap | 9 --------- .../stream/test/__snapshots__/loadMore.spec.tsx.snap | 10 ---------- .../test/__snapshots__/renderReplies.spec.tsx.snap | 5 ----- .../test/__snapshots__/renderStream.spec.tsx.snap | 5 ----- .../test/__snapshots__/showAllReplies.spec.tsx.snap | 10 ---------- 6 files changed, 2 insertions(+), 41 deletions(-) diff --git a/src/core/client/embed/decorators/withSetCommentID.spec.ts b/src/core/client/embed/decorators/withSetCommentID.spec.ts index 1c6b92281..ed8f17e8b 100644 --- a/src/core/client/embed/decorators/withSetCommentID.spec.ts +++ b/src/core/client/embed/decorators/withSetCommentID.spec.ts @@ -11,7 +11,7 @@ it("should add commentID", () => { }, }; withSetCommentID(fakePym as any); - expect(location.toString()).toBe("http://localhost/?commentId=comment-id"); + expect(location.toString()).toBe("http://localhost/?commentID=comment-id"); window.history.replaceState(previousState, document.title, previousLocation); }); @@ -21,7 +21,7 @@ it("should remove commentID", () => { window.history.replaceState( previousState, document.title, - "http://localhost/?commentId=comment-id" + "http://localhost/?commentID=comment-id" ); const fakePym = { onMessage: (type: string, callback: () => void) => { diff --git a/src/core/client/stream/components/__snapshots__/Stream.spec.tsx.snap b/src/core/client/stream/components/__snapshots__/Stream.spec.tsx.snap index 95b463311..5da869b02 100644 --- a/src/core/client/stream/components/__snapshots__/Stream.spec.tsx.snap +++ b/src/core/client/stream/components/__snapshots__/Stream.spec.tsx.snap @@ -4,9 +4,6 @@ exports[`renders correctly 1`] = `
- @@ -65,9 +62,6 @@ exports[`when there is more disables load more button 1`] = `
- @@ -140,9 +134,6 @@ exports[`when there is more renders a load more button 1`] = `
- diff --git a/src/core/client/stream/test/__snapshots__/loadMore.spec.tsx.snap b/src/core/client/stream/test/__snapshots__/loadMore.spec.tsx.snap index d45491e01..619f3269d 100644 --- a/src/core/client/stream/test/__snapshots__/loadMore.spec.tsx.snap +++ b/src/core/client/stream/test/__snapshots__/loadMore.spec.tsx.snap @@ -7,11 +7,6 @@ exports[`loads more comments 1`] = `
-

- Talk NEO -

-

- Talk NEO -

-

- Talk NEO -

-

- Talk NEO -

-

- Talk NEO -

-

- Talk NEO -