huridocs/uwazi

View on GitHub
app/react/Markdown/components/specs/__snapshots__/Map.spec.js.snap

Summary

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

exports[`Map Markdown component renderPopupInfo should have a correct function for rendering popus 1`] = `
<div>
  <Connect(TemplateLabel)
    template="t1"
  />
    
  title
</div>
`;

exports[`Map Markdown component renderPopupInfo should have a correct function for rendering popus 2`] = `
<div>
  <Connect(TemplateLabel)
    template="t2"
  />
    
  another title
</div>
`;

exports[`Map Markdown component should render a placeholder when data is undefined 1`] = `
<div
  className="Map "
>
  <Loader />
</div>
`;

exports[`Map Markdown component should render the data passed by mapStateToProps 1`] = `
<div
  className="Map custom-class"
>
  <Connect(MarkersComponent)
    entities={
      Immutable.List [
        "passed entities",
      ]
    }
  >
    <Component />
  </Connect(MarkersComponent)>
</div>
`;

exports[`Map Markdown component should render the data passed by mapStateToProps 2`] = `
<Connect(MapComponent)
  clickOnCluster={[Function]}
  clickOnMarker={[Function]}
  cluster={true}
  markers={
    Array [
      Object {
        "value": "markers",
      },
    ]
  }
  renderPopupInfo={[Function]}
  scrollZoom={false}
  showControls={false}
  zoom={6}
/>
`;