mirror of
https://github.com/wassname/talk.git
synced 2026-07-19 11:28:50 +08:00
19 lines
375 B
TypeScript
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();
|
|
});
|