Sha256: 3325e0141983a2a935c730c26c7afa4bc1540b71415993db065e501142aa7762
Contents?: true
Size: 900 Bytes
Versions: 6
Compression:
Stored size: 900 Bytes
Contents
import { testComponentSnapshotsWithFixtures } from 'react-redux-test-utils'; import NewTemplateSyncForm from '../NewTemplateSyncForm'; import { importSettings, exportSettings, } from '../../../__fixtures__/templateSyncSettings.fixtures'; const noop = () => {}; const commonFixture = { importUrl: '/import', exportUrl: '/export', validationData: {}, userPermissions: { import: true, export: true, }, handleSubmit: noop, valid: true, importSettings, exportSettings, }; const fixtures = { 'should render when for import settings': { loadingSettings: false, ...commonFixture, }, 'should render for export settings': { loadingSettings: true, ...commonFixture, userPermissions: { import: false, export: true, }, }, }; describe('NewTemplateSyncForm', () => testComponentSnapshotsWithFixtures(NewTemplateSyncForm, fixtures));
Version data entries
6 entries across 6 versions & 1 rubygems