Sha256: 6d7331403c11f862eff7dccdb07c16e4f7d3ae0f442f4eaee5c983c524ec4ddd

Contents?: true

Size: 982 Bytes

Versions: 100

Compression:

Stored size: 982 Bytes

Contents

import { testReducerSnapshotWithFixtures } from 'react-redux-test-utils';
import reducer from '../AnsibleCollectionDetailsReducer';
import {
  ANSIBLE_COLLECTION_DETAILS_REQUEST,
  ANSIBLE_COLLECTION_DETAILS_SUCCESS,
  ANSIBLE_COLLECTION_DETAILS_ERROR,
} from '../AnsibleCollectionDetailsConstants';

const fixtures = {
  'should return the initial state': {},
  'should handle ANSIBLE_COLLECTION_DETAILS_REQUEST': {
    action: {
      type: ANSIBLE_COLLECTION_DETAILS_REQUEST,
    },
  },
  'should handle ANSIBLE_COLLECTION_DETAILS_SUCCESS': {
    action: {
      type: ANSIBLE_COLLECTION_DETAILS_SUCCESS,
      payload: {
        results: { data: { id: 1 } },
      },
    },
  },
  'should handle ANSIBLE_COLLECTION_DETAILS_ERROR': {
    action: {
      type: ANSIBLE_COLLECTION_DETAILS_ERROR,
      payload: new Error('things have gone terribly wrong'),
    },
  },
};

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

Version data entries

100 entries across 100 versions & 1 rubygems

Version Path
katello-4.4.2.2 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetailsReducer.test.js
katello-4.4.2.1 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetailsReducer.test.js
katello-4.4.2 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetailsReducer.test.js
katello-4.5.1 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetailsReducer.test.js
katello-4.5.0 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetailsReducer.test.js
katello-4.5.0.rc2 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetailsReducer.test.js
katello-4.4.1 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetailsReducer.test.js
katello-4.5.0.rc1 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetailsReducer.test.js
katello-4.4.0.2 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetailsReducer.test.js
katello-4.4.0.1 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetailsReducer.test.js
katello-4.3.1 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetailsReducer.test.js
katello-4.4.0 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetailsReducer.test.js
katello-4.4.0.rc2 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetailsReducer.test.js
katello-4.4.0.rc1 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetailsReducer.test.js
katello-4.2.2 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetailsReducer.test.js
katello-4.3.0 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetailsReducer.test.js
katello-4.3.0.rc4 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetailsReducer.test.js
katello-4.3.0.rc3 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetailsReducer.test.js
katello-4.3.0.rc2.1 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetailsReducer.test.js
katello-4.3.0.rc2 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetailsReducer.test.js