huridocs/uwazi

View on GitHub
app/react/Library/components/specs/__snapshots__/MapView.spec.js.snap

Summary

Maintainability
Test Coverage
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`MapView render() should pass the entities 1`] = `
Immutable.List [
  Immutable.Map {
    "template": "1",
    "metadata": Immutable.Map {
      "geo_prop": Immutable.List [
        Immutable.Map {
          "value": Immutable.Map {
            "lat": 1,
            "lon": 2,
          },
        },
      ],
      "age": Immutable.List [
        Immutable.Map {
          "value": "23",
        },
      ],
    },
    "sharedId": "1",
  },
  Immutable.Map {
    "template": "1",
    "metadata": Immutable.Map {
      "age": Immutable.List [
        Immutable.Map {
          "value": "23",
        },
      ],
    },
    "sharedId": "2",
  },
  Immutable.Map {
    "template": "2",
    "metadata": Immutable.Map {
      "other_geo_prop": Immutable.List [
        Immutable.Map {
          "value": Immutable.Map {
            "lat": 3,
            "lon": 4,
          },
        },
      ],
      "age": Immutable.List [
        Immutable.Map {
          "value": "23",
        },
      ],
    },
    "sharedId": "3",
  },
  Immutable.Map {
    "template": "2",
    "metadata": Immutable.Map {
      "other_geo_prop": Immutable.List [
        Immutable.Map {
          "value": Immutable.Map {
            "lat": 1,
            "lon": 2,
          },
        },
      ],
      "age": Immutable.List [
        Immutable.Map {
          "value": "23",
        },
      ],
    },
    "sharedId": "4",
  },
  Immutable.Map {
    "template": "3",
    "metadata": Immutable.Map {
      "age": Immutable.List [
        Immutable.Map {
          "value": "23",
        },
      ],
    },
    "sharedId": "4",
  },
]
`;

exports[`MapView render() should render a map 1`] = `
<Connect(MapComponent)
  clickOnCluster={[Function]}
  clickOnMarker={[Function]}
  cluster={true}
  markers={
    Array [
      Object {
        "value": "markers",
      },
    ]
  }
  renderPopupInfo={true}
/>
`;