"use strict";

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

var _enzyme = require("enzyme");

var _BoundaryMap = _interopRequireDefault(require("./BoundaryMap"));

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

describe("BoundaryMap", function () {
  var data = [{
    type: "Feature",
    properties: {
      name: "Null Island"
    },
    geometry: {
      type: "Polygon",
      coordinates: [[[0, 0], [0, 1], [1, 1], [1, 0], [0, 0]]]
    }
  }];
  var defaultProps = {
    data: data
  };
  it("should render a DeckGL component", function () {
    var wrapper = (0, _enzyme.shallow)(_react["default"].createElement(_BoundaryMap["default"], defaultProps));
    expect(wrapper.find(".DeckGL")).to.have.length(1);
  });
  it("should render child BoundaryMap component", function () {
    var wrapper = (0, _enzyme.shallow)(_react["default"].createElement(_BoundaryMap["default"], defaultProps));
    expect(wrapper.find(".DeckGL").children()).to.have.length(1);
    expect(wrapper.find(".BoundaryMap")).to.have.length(1);
  });
});