From b69313a01ec254b5f99c46e353622bd1901f26c1 Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Mon, 8 Oct 2018 20:52:52 +0200 Subject: [PATCH] fix: Readd and fix App unittest --- .../client/stream/components/App.spec.tsx | 16 +++++++++ .../__snapshots__/App.spec.tsx.snap | 34 +++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 src/core/client/stream/components/App.spec.tsx create 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 new file mode 100644 index 000000000..01c0bec0b --- /dev/null +++ b/src/core/client/stream/components/App.spec.tsx @@ -0,0 +1,16 @@ +import { shallow } from "enzyme"; +import noop from "lodash"; +import React from "react"; + +import { PropTypesOf } from "talk-framework/types"; + +import App from "./App"; + +it("renders comments", () => { + const props: PropTypesOf = { + activeTab: "COMMENTS", + onTabClick: noop, + }; + 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 new file mode 100644 index 000000000..f99caa827 --- /dev/null +++ b/src/core/client/stream/components/__snapshots__/App.spec.tsx.snap @@ -0,0 +1,34 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`renders comments 1`] = ` + + + + + + + + + + + + + + +`;