Sha256: 02d0478d88cde2c6d698df8f360a11a9c8a38f186a36114bf022bd3a191553b6
Contents?: true
Size: 840 Bytes
Versions: 101
Compression:
Stored size: 840 Bytes
Contents
import { testComponentSnapshotsWithFixtures } from 'react-redux-test-utils'; import ModuleStreamDetails from '../ModuleStreamDetails'; 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
101 entries across 101 versions & 1 rubygems