mirror of
https://github.com/wassname/talk.git
synced 2026-07-02 09:38:54 +08:00
17 lines
455 B
TypeScript
17 lines
455 B
TypeScript
import { shallow } from "enzyme";
|
|
import { noop } from "lodash";
|
|
import React from "react";
|
|
|
|
import { PropTypesOf } from "talk-framework/types";
|
|
|
|
import UserBoxAuthenticated from "./UserBoxAuthenticated";
|
|
|
|
it("renders correctly", () => {
|
|
const props: PropTypesOf<typeof UserBoxAuthenticated> = {
|
|
onSignOut: noop,
|
|
username: "Username",
|
|
};
|
|
const wrapper = shallow(<UserBoxAuthenticated {...props} />);
|
|
expect(wrapper).toMatchSnapshot();
|
|
});
|