Sha256: 4e8195ab1cedf2efaab9b74206609c57be6c80c026e287cf970f8245fd313a76

Contents?: true

Size: 841 Bytes

Versions: 10

Compression:

Stored size: 841 Bytes

Contents

import { testSelectorsSnapshotWithFixtures } from '@theforeman/test';

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

10 entries across 10 versions & 1 rubygems

Version Path
foreman_templates-10.0.2 webpack/components/NewTemplateSync/__tests__/NewTemplateSyncSelectors.test.js
foreman_templates-10.0.1 webpack/components/NewTemplateSync/__tests__/NewTemplateSyncSelectors.test.js
foreman_templates-10.0.0 webpack/components/NewTemplateSync/__tests__/NewTemplateSyncSelectors.test.js
foreman_templates-9.5.1 webpack/components/NewTemplateSync/__tests__/NewTemplateSyncSelectors.test.js
foreman_templates-9.5.0 webpack/components/NewTemplateSync/__tests__/NewTemplateSyncSelectors.test.js
foreman_templates-9.3.3 webpack/components/NewTemplateSync/__tests__/NewTemplateSyncSelectors.test.js
foreman_templates-9.3.2 webpack/components/NewTemplateSync/__tests__/NewTemplateSyncSelectors.test.js
foreman_templates-9.3.1 webpack/components/NewTemplateSync/__tests__/NewTemplateSyncSelectors.test.js
foreman_templates-9.4.0 webpack/components/NewTemplateSync/__tests__/NewTemplateSyncSelectors.test.js
foreman_templates-9.3.0 webpack/components/NewTemplateSync/__tests__/NewTemplateSyncSelectors.test.js