Sha256: c30b7b710d9a3c799ee23cec39bfcf7f7b65575e43497d35878e5d9b566c291b

Contents?: true

Size: 559 Bytes

Versions: 4

Compression:

Stored size: 559 Bytes

Contents

import { testComponentSnapshotsWithFixtures } from '@theforeman/test';
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', () =>
    testComponentSnapshotsWithFixtures(WebhooksIndexPage, fixtures));
});

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
foreman_webhooks-3.0.3 webpack/ForemanWebhooks/Routes/Webhooks/WebhooksIndexPage/__tests__/WebhooksIndexPage.test.js
foreman_webhooks-3.0.2 webpack/ForemanWebhooks/Routes/Webhooks/WebhooksIndexPage/__tests__/WebhooksIndexPage.test.js
foreman_webhooks-3.0.1 webpack/ForemanWebhooks/Routes/Webhooks/WebhooksIndexPage/__tests__/WebhooksIndexPage.test.js
foreman_webhooks-3.0.0 webpack/ForemanWebhooks/Routes/Webhooks/WebhooksIndexPage/__tests__/WebhooksIndexPage.test.js