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