Sha256: 924dc9bcd73822659ff348975237e2f3afe8ec1ae4900ac3a7e57215de6b1324

Contents?: true

Size: 1.78 KB

Versions: 24

Compression:

Stored size: 1.78 KB

Contents

// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`SyncButton actions should handleSync 1`] = `
Array [
  Array [
    Object {
      "payload": Object {},
      "type": "INVENTORY_SYNC_REQUEST",
    },
  ],
  Array [
    Object {
      "payload": Object {
        "disconnectHosts": 0,
        "syncHosts": 1,
      },
      "type": "INVENTORY_SYNC_SUCCESS",
    },
  ],
  Array [
    Object {
      "payload": Object {
        "message": Object {
          "message": <Toast
            disconnectHosts={0}
            syncHosts={1}
          />,
          "sticky": true,
          "type": "success",
        },
      },
      "type": "TOASTS_ADD",
    },
  ],
]
`;

exports[`SyncButton actions should handleSync with custom error message 1`] = `
Array [
  Array [
    Object {
      "payload": Object {},
      "type": "INVENTORY_SYNC_REQUEST",
    },
  ],
  Array [
    Object {
      "payload": Object {
        "error": "Server error!",
      },
      "type": "INVENTORY_SYNC_ERROR",
    },
  ],
  Array [
    Object {
      "payload": Object {
        "message": Object {
          "message": "Custom error to display in a toast",
          "sticky": true,
          "type": "error",
        },
      },
      "type": "TOASTS_ADD",
    },
  ],
]
`;

exports[`SyncButton actions should handleSync with error message 1`] = `
Array [
  Array [
    Object {
      "payload": Object {},
      "type": "INVENTORY_SYNC_REQUEST",
    },
  ],
  Array [
    Object {
      "payload": Object {
        "error": "Network error!",
      },
      "type": "INVENTORY_SYNC_ERROR",
    },
  ],
  Array [
    Object {
      "payload": Object {
        "message": Object {
          "message": "Network error!",
          "sticky": true,
          "type": "error",
        },
      },
      "type": "TOASTS_ADD",
    },
  ],
]
`;

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
foreman_rh_cloud-2.0.18.1 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonActions.test.js.snap
foreman_rh_cloud-3.0.18.1 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonActions.test.js.snap
foreman_rh_cloud-1.0.18 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonActions.test.js.snap
foreman_rh_cloud-2.0.18 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonActions.test.js.snap
foreman_rh_cloud-3.0.18 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonActions.test.js.snap
foreman_rh_cloud-1.0.17 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonActions.test.js.snap
foreman_rh_cloud-2.0.17 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonActions.test.js.snap
foreman_rh_cloud-3.0.17 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonActions.test.js.snap
foreman_rh_cloud-2.0.16 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonActions.test.js.snap
foreman_rh_cloud-1.0.16 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonActions.test.js.snap
foreman_rh_cloud-3.0.16 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonActions.test.js.snap
foreman_rh_cloud-1.0.15 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonActions.test.js.snap
foreman_rh_cloud-2.0.15 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonActions.test.js.snap
foreman_rh_cloud-3.0.15 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonActions.test.js.snap
foreman_rh_cloud-3.0.14 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonActions.test.js.snap
foreman_rh_cloud-2.0.14 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonActions.test.js.snap
foreman_rh_cloud-1.0.14 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonActions.test.js.snap
foreman_rh_cloud-0.9.14 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonActions.test.js.snap
foreman_rh_cloud-0.9.13.1 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonActions.test.js.snap
foreman_rh_cloud-1.0.13.1 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonActions.test.js.snap