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-3.17.1 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetailsReducer.test.js
katello-3.16.2 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetailsReducer.test.js
katello-3.18.0.rc2.1 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetailsReducer.test.js
katello-3.18.0.rc2 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetailsReducer.test.js
katello-3.17.0 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetailsReducer.test.js
katello-3.18.0.rc1 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetailsReducer.test.js
katello-3.17.0.rc2.2 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetailsReducer.test.js
katello-3.17.0.rc2.1 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetailsReducer.test.js
katello-3.16.1.2 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetailsReducer.test.js
katello-3.16.1.1 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetailsReducer.test.js
katello-3.17.0.rc2 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetailsReducer.test.js
katello-3.16.1 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetailsReducer.test.js
katello-3.17.0.rc1 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetailsReducer.test.js
katello-3.16.0 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetailsReducer.test.js
katello-3.16.0.rc5.1 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetailsReducer.test.js
katello-3.16.0.rc5 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetailsReducer.test.js
katello-3.16.0.rc4.1 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetailsReducer.test.js
katello-3.15.3.1 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetailsReducer.test.js
katello-3.15.3 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetailsReducer.test.js
katello-3.16.0.rc4 webpack/scenes/AnsibleCollections/Details/__tests__/AnsibleCollectionDetailsReducer.test.js