Sha256: 2b24f0e04a80b1e3df99c5fa7389210fd9b35dcb54469dc68602d1b2e6b1f0a0
Contents?: true
Size: 863 Bytes
Versions: 5
Compression:
Stored size: 863 Bytes
Contents
import ModuleStreamDetails from '../ModuleStreamDetails'; import { testComponentSnapshotsWithFixtures } from '../../../../move_to_pf/test-utils/testHelpers'; import { details, loadingState } from './moduleStreamDetails.fixtures'; jest.mock('foremanReact/components/Pagination/PaginationWrapper'); const mockFunc = jest.fn(); const baseProps = { loadModuleStreamDetails: mockFunc, location: { search: '' }, history: { push: mockFunc }, moduleStreamDetails: details, match: { params: { id: String(details.id) } }, }; const fixtures = { 'renders with module stream provided': { ...baseProps, }, 'renders with loading state': { ...baseProps, moduleStreamDetails: loadingState, }, }; describe('Module stream details page', () => { describe('rendering', () => testComponentSnapshotsWithFixtures(ModuleStreamDetails, fixtures)); });
Version data entries
5 entries across 5 versions & 1 rubygems