Sha256: 338025b4e7ba5fb838f96f2cbdaac4d6c2ccda8a094e123722cfdfa4ff4606c5

Contents?: true

Size: 740 Bytes

Versions: 6

Compression:

Stored size: 740 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,
  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-7.0.7 webpack/components/NewTemplateSync/components/__tests__/SyncSettingFields.test.js
foreman_templates-7.0.6 webpack/components/NewTemplateSync/components/__tests__/SyncSettingFields.test.js
foreman_templates-7.0.5 webpack/components/NewTemplateSync/components/__tests__/SyncSettingFields.test.js
foreman_templates-7.0.4 webpack/components/NewTemplateSync/components/__tests__/SyncSettingFields.test.js
foreman_templates-7.0.3 webpack/components/NewTemplateSync/components/__tests__/SyncSettingFields.test.js
foreman_templates-7.0.2 webpack/components/NewTemplateSync/components/__tests__/SyncSettingFields.test.js