"use strict";

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

var _enzyme = require("enzyme");

var _StackedAreaChart = _interopRequireDefault(require("./StackedAreaChart"));

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

describe("StackedAreaChart", function () {
  var data = [{
    year: 2015,
    population: 1
  }, {
    year: 2016,
    population: 2
  }, {
    year: 2017,
    population: 3
  }];
  var defaultProps = {
    data: data,
    dataKey: "year",
    dataValue: "population"
  };
  it("should render a VictoryChart", function () {
    var wrapper = (0, _enzyme.shallow)(_react["default"].createElement(_StackedAreaChart["default"], defaultProps));
    expect(wrapper.find("VictoryChart").length).to.eql(1);
  });
});