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