huridocs/uwazi

View on GitHub
app/api/relationships/specs/__snapshots__/relationships.spec.js.snap

Summary

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

exports[`relationships bulk() should save or delete the relationships 1`] = `
Array [
  Array [
    Object {
      "_id": "connectionID5",
      "entity": "entity3",
      "entityData": Object {
        "_id": "entity3",
        "creationDate": 456,
        "icon": "icon3",
        "language": "en",
        "metadata": Object {
          "data": Array [
            Object {
              "value": "data2",
            },
          ],
        },
        "published": true,
        "sharedId": "entity3",
        "template": "template",
        "title": "entity3 title",
        "type": "entity",
      },
      "hub": "hub2",
      "reference": Object {
        "text": "changed text",
      },
      "template": "relation2",
    },
  ],
  Object {
    "acknowledged": true,
    "deletedCount": 2,
  },
]
`;