"use strict";

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

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

var _enzyme = require("enzyme");

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

describe('LabeledCheckbox', function () {
  it('displays a labeled checkbox', function () {
    var node = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(_["default"], {
      id: "test",
      name: "test-input"
    }));
    expect(node.find('label').first().hasClass('LabeledCheckbox')).toBe(true);
  });
  it('displays a labeled checkbox with type "text"', function () {
    var node = (0, _enzyme.mount)( /*#__PURE__*/_react["default"].createElement(_["default"], {
      id: "test",
      name: "test-input",
      type: "text"
    }));
    expect(node.find('label').first().hasClass('LabeledCheckbox')).toBe(true);
  });
});