Sha256: a8039c3d5303c398056536430b010cd779e58e4a4102c87d04d39a304425a188

Contents?: true

Size: 781 Bytes

Versions: 160

Compression:

Stored size: 781 Bytes

Contents

import { testReducerSnapshotWithFixtures } from 'react-redux-test-utils';
import {
  SYSTEM_STATUSES_FAILURE,
  SYSTEM_STATUSES_SUCCESS,
  SYSTEM_STATUSES_REQUEST,
} from '../SystemStatusesConsts';
import reducer from '../SystemStatusesReducer';
import { services } from './SystemStatuses.fixtures';

const fixtures = {
  'should return the initial state': {},
  'should return PENDING': {
    action: {
      type: SYSTEM_STATUSES_REQUEST,
    },
  },
  'should handle success': {
    action: {
      type: SYSTEM_STATUSES_SUCCESS,
      payload: { services },
    },
  },
  'should handle SYSTEM_STATUSES_FAILURE': {
    action: {
      type: SYSTEM_STATUSES_FAILURE,
    },
  },
};

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

Version data entries

160 entries across 160 versions & 1 rubygems

Version Path
katello-4.14.2 webpack/components/extensions/about/__tests__/SystemStatusesReducer.test.js
katello-4.15.0 webpack/components/extensions/about/__tests__/SystemStatusesReducer.test.js
katello-4.15.0.rc2 webpack/components/extensions/about/__tests__/SystemStatusesReducer.test.js
katello-4.15.0.rc1 webpack/components/extensions/about/__tests__/SystemStatusesReducer.test.js
katello-4.14.1 webpack/components/extensions/about/__tests__/SystemStatusesReducer.test.js
katello-4.14.0 webpack/components/extensions/about/__tests__/SystemStatusesReducer.test.js
katello-4.14.0.rc3 webpack/components/extensions/about/__tests__/SystemStatusesReducer.test.js
katello-4.14.0.rc2 webpack/components/extensions/about/__tests__/SystemStatusesReducer.test.js
katello-4.14.0.rc1.1 webpack/components/extensions/about/__tests__/SystemStatusesReducer.test.js
katello-4.14.0.rc1 webpack/components/extensions/about/__tests__/SystemStatusesReducer.test.js
katello-4.13.1 webpack/components/extensions/about/__tests__/SystemStatusesReducer.test.js
katello-4.13.0 webpack/components/extensions/about/__tests__/SystemStatusesReducer.test.js
katello-4.12.1 webpack/components/extensions/about/__tests__/SystemStatusesReducer.test.js
katello-4.13.0.rc1 webpack/components/extensions/about/__tests__/SystemStatusesReducer.test.js
katello-4.12.0 webpack/components/extensions/about/__tests__/SystemStatusesReducer.test.js
katello-4.12.0.rc3 webpack/components/extensions/about/__tests__/SystemStatusesReducer.test.js
katello-4.12.0.rc2 webpack/components/extensions/about/__tests__/SystemStatusesReducer.test.js
katello-4.12.0.rc1 webpack/components/extensions/about/__tests__/SystemStatusesReducer.test.js
katello-4.11.1 webpack/components/extensions/about/__tests__/SystemStatusesReducer.test.js
katello-4.11.0 webpack/components/extensions/about/__tests__/SystemStatusesReducer.test.js