mirror of
https://github.com/wassname/talk.git
synced 2026-08-02 13:10:23 +08:00
13 lines
270 B
TypeScript
13 lines
270 B
TypeScript
import { shallow } from "enzyme";
|
|
import React from "react";
|
|
|
|
import Username from "./Username";
|
|
|
|
it("renders correctly", () => {
|
|
const props = {
|
|
children: "Marvin",
|
|
};
|
|
const wrapper = shallow(<Username {...props} />);
|
|
expect(wrapper).toMatchSnapshot();
|
|
});
|