"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

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

var _enzyme = require("enzyme");

var _ = _interopRequireDefault(require("."));

describe('Button', function () {
  it('displays a button', function () {
    var node = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_["default"], null));
    expect(node.hasClass('Button')).toBe(true);
  });
  it('displays a circular button', function () {
    var node = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_["default"], {
      circular: true
    }));
    expect(node.hasClass('Button_circular')).toBe(true);
  });
  it('displays a ghost button', function () {
    var node = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_["default"], {
      ghost: true
    }));
    expect(node.hasClass('Button_ghost')).toBe(true);
  });
  it('displays a large button', function () {
    var node = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_["default"], {
      size: "lg"
    }));
    expect(node.hasClass('Button_lg')).toBe(true);
  });
  it('displays a text button', function () {
    var node = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_["default"], {
      text: true
    }));
    expect(node.hasClass('Button_text')).toBe(true);
  });
  it('displays a submit button', function () {
    var node = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_["default"], {
      type: "submit"
    }));
    expect(node.find('.Button').prop('type')).toBe('submit');
  });
});