Sha256: bd1e81a5587ce0bfe96db1c7ea2d5f0f7f1dc0ae0da124685ea715944b38dff4

Contents?: true

Size: 620 Bytes

Versions: 16

Compression:

Stored size: 620 Bytes

Contents

import { testSelectorsSnapshotWithFixtures } from 'react-redux-test-utils';
import {
  selectSettings,
  selectInsightsSyncEnabled,
} from '../InsightsSettingsSelectors';
import { insightsStateWrapper } from '../../../../ForemanRhCloudTestHelpers';

const state = insightsStateWrapper({
  settings: {
    insightsSyncEnabled: true,
  },
});

const fixtures = {
  'should return insights sync settings': () => selectSettings(state),
  'should return insightsSyncEnabled setting': () =>
    selectInsightsSyncEnabled(state),
};

describe('InsightsSettings selectors', () =>
  testSelectorsSnapshotWithFixtures(fixtures));

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
foreman_rh_cloud-1.0.18 webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsSelectors.test.js
foreman_rh_cloud-1.0.17 webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsSelectors.test.js
foreman_rh_cloud-1.0.16 webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsSelectors.test.js
foreman_rh_cloud-1.0.15 webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsSelectors.test.js
foreman_rh_cloud-1.0.14 webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsSelectors.test.js
foreman_rh_cloud-0.9.14 webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsSelectors.test.js
foreman_rh_cloud-0.9.13.1 webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsSelectors.test.js
foreman_rh_cloud-1.0.13.1 webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsSelectors.test.js
foreman_rh_cloud-0.9.13 webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsSelectors.test.js
foreman_rh_cloud-1.0.13 webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsSelectors.test.js
foreman_rh_cloud-0.9.12 webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsSelectors.test.js
foreman_rh_cloud-1.0.12 webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsSelectors.test.js
foreman_rh_cloud-0.9.11 webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsSelectors.test.js
foreman_rh_cloud-1.0.11 webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsSelectors.test.js
foreman_rh_cloud-0.9.10 webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsSelectors.test.js
foreman_rh_cloud-1.0.10 webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsSelectors.test.js