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