Sha256: 1cc83105d014728142ec61d3cac97941e2d8f5b956e37bf6bf5db663634c0db2

Contents?: true

Size: 832 Bytes

Versions: 10

Compression:

Stored size: 832 Bytes

Contents

import { testReducerSnapshotWithFixtures } from 'react-redux-test-utils';
import reducer from '../InsightsSettingsReducer';
import {
  INSIGHTS_SYNC_SETTING_SET,
  INSIGHTS_SYNC_SETTINGS_GET_SUCCESS,
} from '../InsightsSettingsConstants';

const fixtures = {
  'should return the initial state': {},
  'should handle INSIGHTS_SYNC_SETTINGS_GET_SUCCESS': {
    action: {
      type: INSIGHTS_SYNC_SETTINGS_GET_SUCCESS,
      payload: {
        settings: {
          insightsSyncEnabled: true,
        },
      },
    },
  },
  'should handle INSIGHTS_SYNC_SETTING_SET': {
    action: {
      type: INSIGHTS_SYNC_SETTING_SET,
      payload: {
        settings: {
          insightsSyncEnabled: true,
        },
      },
    },
  },
};

describe('InsightsSettings reducer', () =>
  testReducerSnapshotWithFixtures(reducer, fixtures));

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
foreman_rh_cloud-1.0.18 webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsReducer.test.js
foreman_rh_cloud-1.0.17 webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsReducer.test.js
foreman_rh_cloud-1.0.16 webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsReducer.test.js
foreman_rh_cloud-1.0.15 webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsReducer.test.js
foreman_rh_cloud-1.0.14 webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsReducer.test.js
foreman_rh_cloud-0.9.14 webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsReducer.test.js
foreman_rh_cloud-0.9.13.1 webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsReducer.test.js
foreman_rh_cloud-1.0.13.1 webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsReducer.test.js
foreman_rh_cloud-0.9.13 webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsReducer.test.js
foreman_rh_cloud-1.0.13 webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsReducer.test.js