Files
talk/src/core/client/stream/containers/CommentContainer.spec.tsx
T
2018-07-06 16:11:05 -03:00

19 lines
375 B
TypeScript

import { shallow } from "enzyme";
import React from "react";
import { CommentContainer } from "./CommentContainer";
it("renders username and body", () => {
const props = {
data: {
author: {
username: "Marvin",
},
body: "Woof",
},
};
const wrapper = shallow(<CommentContainer {...props} />);
expect(wrapper).toMatchSnapshot();
});