"use strict";

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

var _enzyme = require("enzyme");

var _RadioItem = _interopRequireDefault(require("../RadioItem"));

var _RadioItem2 = _interopRequireDefault(require("../RadioItem.less"));

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

describe('RadioItem Specs', function () {
  it('should render correct icon when not selected', function () {
    var radioItem = (0, _enzyme.mount)(_react.default.createElement(_RadioItem.default, null, "Hello RadioItem"));
    var expected = 0;
    var actual = radioItem.find(".".concat(_RadioItem2.default.selected)).length;
    expect(actual).to.equal(expected);
  });
  it('should render correct icon when selected', function () {
    var radioItem = (0, _enzyme.mount)(_react.default.createElement(_RadioItem.default, {
      selected: true
    }, "Hello RadioItem"));
    var expected = 1;
    var actual = radioItem.find(".".concat(_RadioItem2.default.selected)).length;
    expect(actual).to.equal(expected);
  });
});