huridocs/uwazi

View on GitHub
app/react/Viewer/components/specs/__snapshots__/Connection.spec.js.snap

Summary

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

exports[`Connection should render the reference 1`] = `
<Connect(Item)
  additionalMetadata={
    Array [
      Object {
        "label": "Connection type",
        "value": undefined,
      },
    ]
  }
  additionalText={null}
  buttons={
    <div
      className="item-shortcut-group"
    >
      <ShowIf
        if={true}
      >
        <Connect(NeedAuthorization)
          roles={
            Array [
              "admin",
              "editor",
            ]
          }
        >
          <a
            className="item-shortcut btn btn-default btn-hover-danger delete"
            onClick={[Function]}
          >
            <Connect(Icon)
              icon="trash-alt"
            />
          </a>
        </Connect(NeedAuthorization)>
      </ShowIf>
      <ShowIf
        if={true}
      >
        <Connect(I18NLink)
          className="item-shortcut btn btn-default"
          onClick={[Function]}
          to="/entity/undefined"
        >
          <Connect(Icon)
            icon="file"
          />
        </Connect(I18NLink)>
      </ShowIf>
    </div>
  }
  className="relationship-active item-ref1  "
  data-id="ref1"
  doc={
    Immutable.Map {
      "_id": "1",
    }
  }
  evalPublished={true}
  noMetadata={true}
  onClick={[Function]}
  onMouseEnter={[Function]}
  onMouseLeave={[Function]}
/>
`;