"use strict";

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

var _enzyme = require("enzyme");

var _deck = _interopRequireDefault(require("deck.gl"));

var _MapOverlay = _interopRequireDefault(require("./MapOverlay"));

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

describe("MapOverlay", function () {
  var data = [{
    type: "Feature",
    geometry: {
      type: "Point",
      coordinates: [0, 0]
    },
    properties: {
      name: "Null Island"
    }
  }];
  var extruded = true;
  var opacity = 0.8;
  var defaultProps = {
    data: data,
    opacity: opacity,
    extruded: extruded
  };
  var wrapper = (0, _enzyme.shallow)(_react["default"].createElement(_MapOverlay["default"], defaultProps));
  it("should render a div wrapper", function () {
    expect(wrapper.find("div")).length(1);
  });
  it("should render with the same class name", function () {
    expect(wrapper.find("DeckGL")).length(1);
  });
  it("should render a DeckGL component", function () {
    expect(wrapper.find(_deck["default"])).length(1);
  });
});