"use strict";

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

var _enzyme = require("enzyme");

var _ScreenGridMap = _interopRequireDefault(require("./ScreenGridMap"));

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

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