Sha256: ea36da92c28c65a5fcc68cf0ca9c091bd796878e8b82a626e8b4215f37ec8d88

Contents?: true

Size: 847 Bytes

Versions: 12

Compression:

Stored size: 847 Bytes

Contents

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

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

import {
  selectImportSettings,
  selectExportSettings,
  selectLoadingSettings,
  selectError,
} from '../NewTemplateSyncSelectors';

const fixtures = {
  'should return import settings': () =>
    selectImportSettings(stateFactory({ importSettings })),
  'should return export settings': () =>
    selectExportSettings(stateFactory({ exportSettings })),
  'should return loading settings': () =>
    selectLoadingSettings(stateFactory({ loadingSettings: true })),
  'should return loading error': () =>
    selectError(stateFactory({ error: 'Error' })),
};

describe('NewTemplateSyncSelectors', () =>
  testSelectorsSnapshotWithFixtures(fixtures));

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
foreman_templates-9.2.0 webpack/components/NewTemplateSync/__tests__/NewTemplateSyncSelectors.test.js
foreman_templates-9.1.0 webpack/components/NewTemplateSync/__tests__/NewTemplateSyncSelectors.test.js
foreman_templates-9.0.2 webpack/components/NewTemplateSync/__tests__/NewTemplateSyncSelectors.test.js
foreman_templates-9.0.1 webpack/components/NewTemplateSync/__tests__/NewTemplateSyncSelectors.test.js
foreman_templates-9.0.0 webpack/components/NewTemplateSync/__tests__/NewTemplateSyncSelectors.test.js
foreman_templates-7.0.7 webpack/components/NewTemplateSync/__tests__/NewTemplateSyncSelectors.test.js
foreman_templates-8.0.0 webpack/components/NewTemplateSync/__tests__/NewTemplateSyncSelectors.test.js
foreman_templates-7.0.6 webpack/components/NewTemplateSync/__tests__/NewTemplateSyncSelectors.test.js
foreman_templates-7.0.5 webpack/components/NewTemplateSync/__tests__/NewTemplateSyncSelectors.test.js
foreman_templates-7.0.4 webpack/components/NewTemplateSync/__tests__/NewTemplateSyncSelectors.test.js
foreman_templates-7.0.3 webpack/components/NewTemplateSync/__tests__/NewTemplateSyncSelectors.test.js
foreman_templates-7.0.2 webpack/components/NewTemplateSync/__tests__/NewTemplateSyncSelectors.test.js