react-modal-login
Version:
A highly customizable react login modal with social buttons
21 lines (14 loc) • 432 B
JavaScript
import React from "react";
import FormSubmitButton from "../components/FormSubmitButton";
describe('FormSubmitButton component', () => {
const shallowWrapper = shallow(
<FormSubmitButton click={() => {}}/>
);
const tree = toJson(shallowWrapper);
it('should be defined', () => {
expect(FormSubmitButton).toBeDefined();
});
it('should render correctly', () => {
expect(tree).toMatchSnapshot();
});
});