Sha256: befa29937be024759630089b9a4906dc3f3b48ff5b2706b32faa75cbf4cbce5a

Contents?: true

Size: 1.04 KB

Versions: 13

Compression:

Stored size: 1.04 KB

Contents

import { testReducerSnapshotWithFixtures } from 'react-redux-test-utils';
import reducer, { initialState } from '../ApplicationInstanceReportReducer';

import {
  successState,
  initApplicationInstanceReportPayload,
  setActiveHostPayload,
} from '../__fixtures__/applicationInstanceReportReducer.fixtures';

import {
  APPLICATION_INSTANCE_REPORT_INIT,
  APPLICATION_INSTANCE_REPORT_SET_ACTIVE_HOST,
} from '../ApplicationInstanceReportConstants';

const fixtures = {
  'should return initial state': {
    state: initialState,
    action: {
      type: undefined,
      payload: {},
    },
  },

  'should initialize component': {
    state: initialState,
    action: {
      type: APPLICATION_INSTANCE_REPORT_INIT,
      payload: initApplicationInstanceReportPayload,
    },
  },
  'should set active host': {
    state: successState,
    action: {
      type: APPLICATION_INSTANCE_REPORT_SET_ACTIVE_HOST,
      payload: setActiveHostPayload,
    },
  },
};

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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
foreman_acd-0.11.0 webpack/components/ApplicationInstanceReport/__tests__/ApplicationInstanceReportReducer.test.js
foreman_acd-0.10.0 webpack/components/ApplicationInstanceReport/__tests__/ApplicationInstanceReportReducer.test.js
foreman_acd-0.9.7 webpack/components/ApplicationInstanceReport/__tests__/ApplicationInstanceReportReducer.test.js
foreman_acd-0.9.5 webpack/components/ApplicationInstanceReport/__tests__/ApplicationInstanceReportReducer.test.js
foreman_acd-0.9.4 webpack/components/ApplicationInstanceReport/__tests__/ApplicationInstanceReportReducer.test.js
foreman_acd-0.9.3 webpack/components/ApplicationInstanceReport/__tests__/ApplicationInstanceReportReducer.test.js
foreman_acd-0.9.2.3 webpack/components/ApplicationInstanceReport/__tests__/ApplicationInstanceReportReducer.test.js
foreman_acd-0.9.2.2 webpack/components/ApplicationInstanceReport/__tests__/ApplicationInstanceReportReducer.test.js
foreman_acd-0.9.2.1 webpack/components/ApplicationInstanceReport/__tests__/ApplicationInstanceReportReducer.test.js
foreman_acd-0.9.2 webpack/components/ApplicationInstanceReport/__tests__/ApplicationInstanceReportReducer.test.js
foreman_acd-0.9.1 webpack/components/ApplicationInstanceReport/__tests__/ApplicationInstanceReportReducer.test.js
foreman_acd-0.9.0 webpack/components/ApplicationInstanceReport/__tests__/ApplicationInstanceReportReducer.test.js
foreman_acd-0.7.0 webpack/components/ApplicationInstanceReport/__tests__/ApplicationInstanceReportReducer.test.js