mirror of
https://github.com/wassname/talk.git
synced 2026-07-17 11:33:39 +08:00
17 lines
458 B
TypeScript
17 lines
458 B
TypeScript
import { shallow } from "enzyme";
|
|
import { noop } from "lodash";
|
|
import React from "react";
|
|
|
|
import { PropTypesOf } from "talk-framework/types";
|
|
|
|
import UserBoxUnauthenticated from "./UserBoxUnauthenticated";
|
|
|
|
it("renders correctly", () => {
|
|
const props: PropTypesOf<typeof UserBoxUnauthenticated> = {
|
|
onSignIn: noop,
|
|
onRegister: noop,
|
|
};
|
|
const wrapper = shallow(<UserBoxUnauthenticated {...props} />);
|
|
expect(wrapper).toMatchSnapshot();
|
|
});
|