"use strict";

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

var _enzyme = require("enzyme");

var _SimpleLegend = _interopRequireDefault(require("./SimpleLegend"));

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

describe("SimpleLegend", function () {
  it("should render a legend when provided data", function () {
    var testLegendData = [{
      name: "a"
    }, {
      name: "b"
    }, {
      name: "c"
    }];
    var wrapper = (0, _enzyme.mount)(_react["default"].createElement(_SimpleLegend["default"], {
      legendData: testLegendData
    }));
    expect(wrapper.find("div")).to.have.length(1);
  });
});