"use strict";

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

var _enzyme = require("enzyme");

var _BaseMap = _interopRequireDefault(require("./BaseMap"));

var _ScatterPlotMap = _interopRequireDefault(require("../ScatterPlotMap/ScatterPlotMap"));

var _index = require("../_Themes/index");

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

var MAPBOX_TOKEN = _index.MapGLResources.MAPBOX_TOKEN;
describe.skip("BaseMap", function () {
  var defaultProps = {};
  it("should render a MapGL component", function () {
    var wrapper = (0, _enzyme.shallow)(_react["default"].createElement(_BaseMap["default"], defaultProps));
    expect(wrapper.find(".MapGL")).to.have.length(1);
  });
  it("should include required prop mapboxApiAccessToken", function () {
    var wrapper = (0, _enzyme.shallow)(_react["default"].createElement(_BaseMap["default"], defaultProps));
    expect(wrapper.find(".MapGL").prop("mapboxApiAccessToken")).to.eql(MAPBOX_TOKEN);
  });
  it("should render child NavigationControl component", function () {
    var wrapper = (0, _enzyme.shallow)(_react["default"].createElement(_BaseMap["default"], defaultProps));
    expect(wrapper.find(".MapGL").children()).to.have.length(1);
  });
  it("should render child deck.gl layer component", function () {
    var data = [{
      geometry: {
        type: "Point",
        coordinates: [0, 0]
      }
    }];
    var wrapper = (0, _enzyme.shallow)(_react["default"].createElement(_BaseMap["default"], defaultProps, _react["default"].createElement(_ScatterPlotMap["default"], {
      data: data
    })));
    expect(wrapper.find(".MapGL").children()).to.have.length(2);
  });
});