Sha256: 7a3dfc1ced837b9a84dd9fcb3857ed356f056d8a10ed31abbfe29f135980362f

Contents?: true

Size: 663 Bytes

Versions: 95

Compression:

Stored size: 663 Bytes

Contents

import { testReducerSnapshotWithFixtures } from '@theforeman/test';
import reducer from '../InsightsTabReducer';
import { hits } from './InsightsTab.fixtures';
import {
  INSIGHTS_HITS_REQUEST,
  INSIGHTS_HITS_SUCCESS,
} from '../InsightsTabConstants';

const fixtures = {
  'should return the initial state': {},
  'should handle INSIGHTS_HITS_REQUEST': {
    action: {
      type: INSIGHTS_HITS_REQUEST,
      payload: {},
    },
  },
  'should handle INSIGHTS_HITS_SUCCESS': {
    action: {
      type: INSIGHTS_HITS_SUCCESS,
      payload: { hits },
    },
  },
};

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

Version data entries

95 entries across 95 versions & 1 rubygems

Version Path
foreman_rh_cloud-3.0.19 webpack/InsightsHostDetailsTab/__tests__/InsightsTabReducer.test.js
foreman_rh_cloud-2.0.18.1 webpack/InsightsHostDetailsTab/__tests__/InsightsTabReducer.test.js
foreman_rh_cloud-3.0.18.1 webpack/InsightsHostDetailsTab/__tests__/InsightsTabReducer.test.js
foreman_rh_cloud-2.0.18 webpack/InsightsHostDetailsTab/__tests__/InsightsTabReducer.test.js
foreman_rh_cloud-3.0.18 webpack/InsightsHostDetailsTab/__tests__/InsightsTabReducer.test.js
foreman_rh_cloud-2.0.17 webpack/InsightsHostDetailsTab/__tests__/InsightsTabReducer.test.js
foreman_rh_cloud-3.0.17 webpack/InsightsHostDetailsTab/__tests__/InsightsTabReducer.test.js
foreman_rh_cloud-2.0.16 webpack/InsightsHostDetailsTab/__tests__/InsightsTabReducer.test.js
foreman_rh_cloud-3.0.16 webpack/InsightsHostDetailsTab/__tests__/InsightsTabReducer.test.js
foreman_rh_cloud-2.0.15 webpack/InsightsHostDetailsTab/__tests__/InsightsTabReducer.test.js
foreman_rh_cloud-3.0.15 webpack/InsightsHostDetailsTab/__tests__/InsightsTabReducer.test.js
foreman_rh_cloud-3.0.14 webpack/InsightsHostDetailsTab/__tests__/InsightsTabReducer.test.js
foreman_rh_cloud-2.0.14 webpack/InsightsHostDetailsTab/__tests__/InsightsTabReducer.test.js
foreman_rh_cloud-2.0.13.1 webpack/InsightsHostDetailsTab/__tests__/InsightsTabReducer.test.js
foreman_rh_cloud-2.0.13 webpack/InsightsHostDetailsTab/__tests__/InsightsTabReducer.test.js