Sha256: d2a4ff1f5357989156ffb73cd109241f80e2a42c6789c8b91db9c79415b61820
Contents?: true
Size: 782 Bytes
Versions: 2
Compression:
Stored size: 782 Bytes
Contents
import { testSelectorsSnapshotWithFixtures } from 'react-redux-test-utils'; import { selectHosts, selectActiveHostId, } from '../ApplicationInstanceReportSelectors'; import { applicationInstanceReportData1 } from '../__fixtures__/applicationInstanceReportData1.fixtures'; const stateFactory = obj => ({ foremanAcd: { applicationInstanceReport: obj, }, }); const fixtures = { 'should return hosts from applicationInstanceReportData1 fixtures': () => selectHosts(stateFactory(applicationInstanceReportData1)), 'should return activeHostId from applicationInstanceReportData1 fixtures': () => selectActiveHostId(stateFactory(applicationInstanceReportData1)), }; describe('ApplicationInstanceSelectors', () => testSelectorsSnapshotWithFixtures(fixtures));
Version data entries
2 entries across 2 versions & 1 rubygems