UNPKG

react-modal-login

Version:

A highly customizable react login modal with social buttons

24 lines (17 loc) 501 B
import React from "react"; import GoogleLoginButton from "../components/GoogleLoginButton"; describe('GoogleLoginButton component', () => { const shallowWrapper = shallow( <GoogleLoginButton label="Continue with Google" btnClass="RML-google-login-button" /> ); const tree = toJson(shallowWrapper); it('should be defined', () => { expect(GoogleLoginButton).toBeDefined(); }); it('should render correctly', () => { expect(tree).toMatchSnapshot(); }); });