From e064ad49aee810268d51438d8f124154ff5c9c5b Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Tue, 17 Jul 2018 15:31:40 -0300 Subject: [PATCH] Add missing tests --- .../stream/components/ReplyList.spec.tsx | 7 +++ .../__snapshots__/ReplyList.spec.tsx.snap | 43 +++++++++++++++++++ 2 files changed, 50 insertions(+) diff --git a/src/core/client/stream/components/ReplyList.spec.tsx b/src/core/client/stream/components/ReplyList.spec.tsx index 093d96049..76750c8a0 100644 --- a/src/core/client/stream/components/ReplyList.spec.tsx +++ b/src/core/client/stream/components/ReplyList.spec.tsx @@ -39,4 +39,11 @@ describe("when there is more", () => { .simulate("click"); expect((props.onShowAll as SinonSpy).calledOnce).toBe(true); }); + + const wrapperDisabledButton = shallow( + + ); + it("disables load more button", () => { + expect(wrapperDisabledButton).toMatchSnapshot(); + }); }); diff --git a/src/core/client/stream/components/__snapshots__/ReplyList.spec.tsx.snap b/src/core/client/stream/components/__snapshots__/ReplyList.spec.tsx.snap index e48482470..9fbe86dab 100644 --- a/src/core/client/stream/components/__snapshots__/ReplyList.spec.tsx.snap +++ b/src/core/client/stream/components/__snapshots__/ReplyList.spec.tsx.snap @@ -28,6 +28,49 @@ exports[`renders correctly 1`] = ` `; +exports[`when there is more disables load more button 1`] = ` + + + + + + + Show All Replies + + + + +`; + exports[`when there is more renders a load more button 1`] = `