Sha256: 97f64d69710b426feb66d5625b04e7012ca214bc302c1239f123bd8969960f6c

Contents?: true

Size: 951 Bytes

Versions: 15

Compression:

Stored size: 951 Bytes

Contents

import { testReducerSnapshotWithFixtures } from '../../../../move_to_pf/test-utils/testHelpers';
import reducer from '../ModuleStreamDetailsReducer';
import {
  MODULE_STREAM_DETAILS_REQUEST,
  MODULE_STREAM_DETAILS_SUCCESS,
  MODULE_STREAM_DETAILS_FAILURE,
} from '../ModuleStreamDetailsConstants';

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

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
katello-3.11.2 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetailsReducer.test.js
katello-3.10.2 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetailsReducer.test.js
katello-3.10.1.1 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetailsReducer.test.js
katello-3.10.1 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetailsReducer.test.js
katello-3.11.1 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetailsReducer.test.js
katello-3.11.0 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetailsReducer.test.js
katello-3.11.0.rc2 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetailsReducer.test.js
katello-3.11.0.rc1 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetailsReducer.test.js
katello-3.10.0 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetailsReducer.test.js
katello-3.10.0.rc1.1 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetailsReducer.test.js
katello-3.9.1 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetailsReducer.test.js
katello-3.10.0.rc1 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetailsReducer.test.js
katello-3.9.0 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetailsReducer.test.js
katello-3.9.0.rc2 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetailsReducer.test.js
katello-3.9.0.rc1 webpack/scenes/ModuleStreams/Details/__tests__/ModuleStreamDetailsReducer.test.js