Sha256: 996a12316f0b6a1b17f5c29c65f2def368b3d1bdbcc9b3b4dfca9e12901687bc

Contents?: true

Size: 439 Bytes

Versions: 2

Compression:

Stored size: 439 Bytes

Contents

import { testActionSnapshotWithFixtures } from '@theforeman/test';
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

2 entries across 2 versions & 1 rubygems

Version Path
foreman_rh_cloud-2.0.12 webpack/InsightsHostDetailsTab/__tests__/InsightsTabActions.test.js
foreman_rh_cloud-2.0.11 webpack/InsightsHostDetailsTab/__tests__/InsightsTabActions.test.js