import React from "react";
import { mount } from "enzyme";
import Button from "./Button";
describe("Button", function () {
  var testString = "Hello";
  var wrapper = mount(React.createElement(Button, null, testString));
  it("should render a button", function () {
    expect(wrapper.find("button")).to.have.length(1);
  });
  it("should have the appropriate child text", function () {
    expect(wrapper.text()).to.eql(testString);
  });
});