"use strict";

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

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

var _enzyme = require("enzyme");

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

describe('Toggle', function () {
  it('displays a toggle', function () {
    var node = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_["default"], null));
    expect(node.hasClass('Toggle')).toBe(true);
  });
  it('displays a toggle with type "checkbox"', function () {
    var node = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_["default"], {
      type: "checkbox"
    }));
    expect(node.hasClass('Toggle_checkbox')).toBe(true);
  });
  it('displays a toggle with type "radio"', function () {
    var node = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_["default"], {
      type: "radio"
    }));
    expect(node.hasClass('Toggle_radio')).toBe(true);
  });
  it('displays a toggle with type "toggle"', function () {
    var node = (0, _enzyme.shallow)( /*#__PURE__*/_react["default"].createElement(_["default"], {
      type: "toggle"
    }));
    expect(node.hasClass('Toggle_toggle')).toBe(true);
  });
});