import React from "react";
import { shallow } from "enzyme";
import ScreenGridMap from "./ScreenGridMap";
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 = shallow(React.createElement(ScreenGridMap, defaultProps));
    expect(wrapper.find(".DeckGL")).to.have.length(1);
  });
  it("should render child ScreenGridMap component", function () {
    var wrapper = shallow(React.createElement(ScreenGridMap, defaultProps));
    expect(wrapper.find(".DeckGL").children()).to.have.length(1);
    expect(wrapper.find(".ScreenGridMap")).to.have.length(1);
  });
});