content: // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
  
  import React from 'react';
  import renderer from 'react-test-renderer';
  
  import Map from '../../src/js/components/Map';
  
  // needed because this:
  // https://github.com/facebook/jest/issues/1353
  jest.mock('react-dom');
  
  describe('Map', () => {
    it('has correct default options', () => {
      const component = renderer.create(
        <Map vertical={false} data={{
          "categories": [
            {
              "id": "category-1",
              "label": "First category",
              "items": [
                {"id": "item-1-1", "node": "First item"},
                {"id": "item-1-2", "node": "Second item"},
                {"id": "item-1-3", "node": "Third item"}
              ]
            },
            {
              "id": "category-2",
              "label": "Second category",
              "items": [
                {"id": "item-2-1", "node": "Fourth item"},
                {"id": "item-2-2", "node": "Fifth item"}
              ]
            },
            {
              "id": "category-3",
              "label": "Third category",
              "items": [
                {"id": "item-3-1", "node": "Sixth item"},
                {"id": "item-3-2", "node": "Seventh item"}
              ]
            }
          ],
          "links": [
            {"parentId": "item-1-1", "childId": "item-2-2"},
            {"parentId": "item-1-2", "childId": "item-2-2"},
            {"parentId": "item-1-2", "childId": "item-2-1"},
            {"parentId": "item-2-2", "childId": "item-3-1"},
            {"parentId": "item-2-1", "childId": "item-3-2"}
          ]
        }} />
      );
      let tree = component.toJSON();
      expect(tree).toMatchSnapshot();
    });
  });
  