Sha256: 4fad01636816f56e65082cb017e777623a7fe5be9225fa49c3e61e2459b3933b

Contents?: true

Size: 669 Bytes

Versions: 10

Compression:

Stored size: 669 Bytes

Contents

import { testReducerSnapshotWithFixtures } from 'react-redux-test-utils';
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

10 entries across 10 versions & 1 rubygems

Version Path
foreman_rh_cloud-1.0.18 webpack/InsightsHostDetailsTab/__tests__/InsightsTabReducer.test.js
foreman_rh_cloud-1.0.17 webpack/InsightsHostDetailsTab/__tests__/InsightsTabReducer.test.js
foreman_rh_cloud-1.0.16 webpack/InsightsHostDetailsTab/__tests__/InsightsTabReducer.test.js
foreman_rh_cloud-1.0.15 webpack/InsightsHostDetailsTab/__tests__/InsightsTabReducer.test.js
foreman_rh_cloud-1.0.14 webpack/InsightsHostDetailsTab/__tests__/InsightsTabReducer.test.js
foreman_rh_cloud-0.9.14 webpack/InsightsHostDetailsTab/__tests__/InsightsTabReducer.test.js
foreman_rh_cloud-0.9.13.1 webpack/InsightsHostDetailsTab/__tests__/InsightsTabReducer.test.js
foreman_rh_cloud-1.0.13.1 webpack/InsightsHostDetailsTab/__tests__/InsightsTabReducer.test.js
foreman_rh_cloud-0.9.13 webpack/InsightsHostDetailsTab/__tests__/InsightsTabReducer.test.js
foreman_rh_cloud-1.0.13 webpack/InsightsHostDetailsTab/__tests__/InsightsTabReducer.test.js