delete_channel.test.js.snap 926 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`components/ChannelHeaderDropdown/MenuItem.DeleteChannel should match snapshot 1`] = `
<Connect(ChannelPermissionGate)
  channelId="channel_id"
  permissions={
    Array [
      "delete_public_channel",
    ]
  }
  teamId="team_id"
>
  <li
    role="presentation"
  >
    <Connect(ModalToggleButtonRedux)
      dialogProps={
        Object {
          "channel": Object {
            "id": "channel_id",
            "team_id": "team_id",
            "type": "O",
          },
          "penultimateViewedChannelName": "",
        }
      }
      dialogType={[Function]}
28
      id="channelDelete"
29 30 31 32 33 34 35 36 37 38 39 40
      modalId="delete_channel"
      role="menuitem"
    >
      <FormattedMessage
        defaultMessage="Archive Channel"
        id="channel_header.delete"
        values={Object {}}
      />
    </Connect(ModalToggleButtonRedux)>
  </li>
</Connect(ChannelPermissionGate)>
`;