Files
talk/src/core/client/stream/containers/StreamContainer.spec.tsx
T
2018-07-09 16:45:36 -03:00

24 lines
542 B
TypeScript

import { shallow } from "enzyme";
import { noop } from "lodash";
import React from "react";
import { StreamContainer } from "./StreamContainer";
it("renders correctly", () => {
const props: any = {
asset: {
id: "asset-id",
isClosed: false,
comments: {
edges: [{ node: { id: "comment-1" } }, { node: { id: "comment-2" } }],
},
},
relay: {
hasMore: noop,
isLoading: noop,
},
};
const wrapper = shallow(<StreamContainer {...props} />);
expect(wrapper).toMatchSnapshot();
});