Sha256: dd98d3f3bf4f272061a835e8cf458fb3dd3b8802e94d7b51ecb2497c95a48b3e

Contents?: true

Size: 822 Bytes

Versions: 9

Compression:

Stored size: 822 Bytes

Contents

import React from 'react';
import { testComponentSnapshotsWithFixtures } from '@theforeman/test';
import { Provider } from 'react-redux';
import { createStore } from 'redux';

import WebhooksIndexPage from '../WebhooksIndexPage';

const fixtures = {
  'render with minimal props': {
    fetchAndPush: jest.fn(),
    reloadWithSearch: jest.fn(),
    handleCreateSubmit: jest.fn(),
    isLoading: false,
    hasError: false,
    hasData: false,
    itemCount: 0,
    canCreate: true,
    sort: {},
    webhooks: [],
  },
};

describe('WebhooksIndexPage', () => {
  describe('redering', () => {
    const webhooksPage = () => (
      <Provider store={createStore((state = [], action) => state)}>
        <WebhooksIndexPage />
      </Provider>
    );
    testComponentSnapshotsWithFixtures(webhooksPage, fixtures);
  });
});

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
foreman_webhooks-4.0.0 webpack/ForemanWebhooks/Routes/Webhooks/WebhooksIndexPage/__tests__/WebhooksIndexPage.test.js
foreman_webhooks-3.2.3 webpack/ForemanWebhooks/Routes/Webhooks/WebhooksIndexPage/__tests__/WebhooksIndexPage.test.js
foreman_webhooks-3.2.2 webpack/ForemanWebhooks/Routes/Webhooks/WebhooksIndexPage/__tests__/WebhooksIndexPage.test.js
foreman_webhooks-3.1.1 webpack/ForemanWebhooks/Routes/Webhooks/WebhooksIndexPage/__tests__/WebhooksIndexPage.test.js
foreman_webhooks-3.2.1 webpack/ForemanWebhooks/Routes/Webhooks/WebhooksIndexPage/__tests__/WebhooksIndexPage.test.js
foreman_webhooks-3.2.0 webpack/ForemanWebhooks/Routes/Webhooks/WebhooksIndexPage/__tests__/WebhooksIndexPage.test.js
foreman_webhooks-3.1.0 webpack/ForemanWebhooks/Routes/Webhooks/WebhooksIndexPage/__tests__/WebhooksIndexPage.test.js
foreman_webhooks-3.0.5 webpack/ForemanWebhooks/Routes/Webhooks/WebhooksIndexPage/__tests__/WebhooksIndexPage.test.js
foreman_webhooks-3.0.4 webpack/ForemanWebhooks/Routes/Webhooks/WebhooksIndexPage/__tests__/WebhooksIndexPage.test.js