Sha256: 4134d541d5f799b4c3ac9e88903dac86e945997cb8f1ff9835b588f068279a1c

Contents?: true

Size: 445 Bytes

Versions: 4

Compression:

Stored size: 445 Bytes

Contents

import { testActionSnapshotWithFixtures } from 'react-redux-test-utils';
import API from 'foremanReact/API';
import { fetchHits } from '../InsightsTabActions';
import { hostID, hits } from './InsightsTab.fixtures';

jest.mock('foremanReact/API');
API.get.mockImplementation(async () => hits);

const fixtures = {
  'should fetchHits': () => fetchHits(hostID),
};

describe('InsightsTab actions', () => testActionSnapshotWithFixtures(fixtures));

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
foreman_rh_cloud-0.9.12 webpack/InsightsHostDetailsTab/__tests__/InsightsTabActions.test.js
foreman_rh_cloud-1.0.12 webpack/InsightsHostDetailsTab/__tests__/InsightsTabActions.test.js
foreman_rh_cloud-0.9.11 webpack/InsightsHostDetailsTab/__tests__/InsightsTabActions.test.js
foreman_rh_cloud-1.0.11 webpack/InsightsHostDetailsTab/__tests__/InsightsTabActions.test.js