Sha256: abc300a4ea97f8f70c98c2f9591d3a374fca36bb6121a89ae1c35ea24d8e53af
Contents?: true
Size: 795 Bytes
Versions: 10
Compression:
Stored size: 795 Bytes
Contents
import ModuleStreamDetails from '../ModuleStreamDetails'; import { testComponentSnapshotsWithFixtures } from '../../../../move_to_pf/test-utils/testHelpers'; import { details, loadingState } from './moduleStreamDetails.fixtures'; 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
10 entries across 10 versions & 1 rubygems