huridocs/uwazi

View on GitHub
app/react/Metadata/containers/specs/__snapshots__/FormatMetadata.spec.js.snap

Summary

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

exports[`FormatMetadata should render Metadata component passing the formatted metadata 1`] = `
<Metadata
  compact={true}
  metadata={
    Array [
      Object {
        "formated": "metadata",
      },
    ]
  }
  useV2Player={false}
/>
`;

exports[`FormatMetadata should unshift additional metadata if passed 1`] = `
<Metadata
  compact={false}
  metadata={
    Array [
      Object {
        "more": "data",
      },
      Object {
        "and": "more",
      },
      Object {
        "indexInTemplate": 0,
        "label": undefined,
        "name": "preview",
        "noLabel": false,
        "style": "contain",
        "translateContext": "template",
        "type": "image",
        "value": "/api/files/docId.jpg",
      },
    ]
  }
  templateId="template"
  useV2Player={false}
/>
`;