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 = { onSignIn: noop, onRegister: noop, }; const wrapper = shallow(); expect(wrapper).toMatchSnapshot(); });