"use strict";

var _react = _interopRequireDefault(require("react"));

var _enzyme = require("enzyme");

var _Button = _interopRequireDefault(require("./Button"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

describe("Button", function () {
  var testString = "Hello";
  var wrapper = (0, _enzyme.mount)(_react["default"].createElement(_Button["default"], 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);
  });
});