mirror of
https://github.com/wassname/talk.git
synced 2026-08-16 10:36:48 +08:00
24 lines
542 B
TypeScript
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();
|
|
});
|