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