"use strict";

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

var _enzyme = require("enzyme");

var _PathMap = _interopRequireDefault(require("./PathMap"));

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

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