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