"use strict";

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

var _enzyme = require("enzyme");

var _sinon = _interopRequireDefault(require("sinon"));

var _Dropdown = _interopRequireDefault(require("./Dropdown"));

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

describe("Dropdown", function () {
  var props = {};
  var testOptions = [{
    value: "dog",
    label: "Dog"
  }, {
    value: "cat",
    label: "Cat"
  }, {
    value: "giraffe",
    label: "Giraffe"
  }];
  beforeEach(function () {
    props.onChange = _sinon["default"].spy();
    props.value = testOptions[0].value;
    props.options = testOptions;
  });
  it("should render a select dropdown", function () {
    var wrapper = (0, _enzyme.mount)(_react["default"].createElement(_Dropdown["default"], props));
    expect(wrapper.find("Select")).to.have.length(1);
  });
});