import React from 'react';
import Adapter from 'enzyme-adapter-react-16';
import Enzyme, { shallow, mount } from 'enzyme';
import MapTag from './MapTag';
Enzyme.configure({
  adapter: new Adapter()
});
describe('<MapTag />', function () {
  var demoPresetYellow = React.createElement(MapTag, {
    color: "yellow"
  }, "\u7279\u8272");
  var demoPresetGreen = React.createElement(MapTag, {
    color: "green"
  }, "\u7279\u8272");
  var demoPresetRed = React.createElement(MapTag, {
    color: "red"
  }, "\u7279\u8272");
  var demoPresetBlue = React.createElement(MapTag, {
    color: "blue"
  }, "\u7279\u8272");
  test('颜色定义', function () {
    var yellowWrapper = mount(demoPresetYellow);
    expect(yellowWrapper.find('.ne-maptag').hasClass('ne-maptag-yellow')).toBeTruthy();
    var greenWrapper = mount(demoPresetGreen);
    expect(greenWrapper.find('.ne-maptag').hasClass('ne-maptag-green')).toBeTruthy();
    var redWrapper = mount(demoPresetRed);
    expect(redWrapper.find('.ne-maptag').hasClass('ne-maptag-red')).toBeTruthy();
    var blueWrapper = mount(demoPresetBlue);
    expect(blueWrapper.find('.ne-maptag').hasClass('ne-maptag-blue')).toBeTruthy();
  });
});