Sha256: 30cd30e09e52e676d75619d9af2457ca7e4d9f71f61f936d0675b700ef18e9ad

Contents?: true

Size: 778 Bytes

Versions: 6

Compression:

Stored size: 778 Bytes

Contents

import { testComponentSnapshotsWithFixtures } from 'react-redux-test-utils';

import SyncSettingFields from '../SyncSettingFields';

import {
  importSettings,
  exportSettings,
} from '../../__fixtures__/templateSyncSettings.fixtures';

const noop = () => {};

const commonFixtures = {
  importSettings,
  exportSettings,
  resetField: noop,
  formProps: { isSubmitting: false },
  disabled: false,
};

const fixtures = {
  'should show export settings': {
    syncType: 'export',
    validationData: {},
    ...commonFixtures,
  },
  'should show import settings': {
    syncType: 'import',
    validationData: { repo: ['http', 'https'] },
    ...commonFixtures,
  },
};

describe('SyncSettingFields', () =>
  testComponentSnapshotsWithFixtures(SyncSettingFields, fixtures));

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
foreman_templates-9.2.0 webpack/components/NewTemplateSync/components/__tests__/SyncSettingFields.test.js
foreman_templates-9.1.0 webpack/components/NewTemplateSync/components/__tests__/SyncSettingFields.test.js
foreman_templates-9.0.2 webpack/components/NewTemplateSync/components/__tests__/SyncSettingFields.test.js
foreman_templates-9.0.1 webpack/components/NewTemplateSync/components/__tests__/SyncSettingFields.test.js
foreman_templates-9.0.0 webpack/components/NewTemplateSync/components/__tests__/SyncSettingFields.test.js
foreman_templates-8.0.0 webpack/components/NewTemplateSync/components/__tests__/SyncSettingFields.test.js