{"size": 460, "ext": "js", "max_stars_repo_path": "src/js/components/Button.test.js", "max_stars_repo_name": "monika-stempniak/MapCountriesQuiz", "max_stars_repo_stars_event_min_datetime": "2018-10-05T13:30:10.000Z", "max_stars_repo_stars_event_max_datetime": "2018-10-05T13:30:10.000Z", "max_issues_repo_path": "src/js/components/Button.test.js", "max_issues_repo_name": "monika-stempniak/MapCountriesQuiz", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/js/components/Button.test.js", "max_forks_repo_name": "monika-stempniak/MapCountriesQuiz", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 28.75, "max_line_length": 72, "alphanum_fraction": 0.6130434783}
import React from "react";
import { shallow } from "enzyme";
import Button from "./Button";

describe("<Button />", () => {
  const wrapper = shallow(<Button />);
  it("should render a button element", () => {
    expect(wrapper.find('button[type="button"]').exists()).toBeTruthy();
    expect(wrapper.prop("isHidden")).toBeFalsy();
  });
  it("matches the snapshot", () => {
    const tree = shallow(<Button />);
    expect(tree).toMatchSnapshot();
  });
});
