Sha256: 51a47f42926f9a16757ebaedd7052a9a58e2a2060b7a511db4a0514bf268235d
Contents?: true
Size: 1.81 KB
Versions: 6
Compression:
Stored size: 1.81 KB
Contents
import { testSelectorsSnapshotWithFixtures } from 'react-redux-test-utils'; import { selectLoading, selectEditMode, selectForemanData, selectParameterTypes, selectRows, selectSortingColumns, selectColumns, selectAppDefinition, selectHostgroupId, } from '../ParameterSelectionSelectors'; import { parameterSelectionData_1, } from '../__fixtures__/parameterSelectionData_1.fixtures'; const stateFactory = obj => ({ foremanAcd: { parameterSelectionParameters: obj, }, }); const fixtures = { 'should return loading from parameterSelectionData_1 fixtures': () => selectLoading(stateFactory(parameterSelectionData_1)), 'should return editMode from parameterSelectionData_1 fixtures': () => selectEditMode(stateFactory(parameterSelectionData_1)), 'should return foremanData from parameterSelectionData_1 fixtures': () => selectForemanData(stateFactory(parameterSelectionData_1)), 'should return parameterTypes from parameterSelectionData_1 fixtures': () => selectParameterTypes(stateFactory(parameterSelectionData_1)), 'should return rows from parameterSelectionData_1 fixtures': () => selectRows(stateFactory(parameterSelectionData_1)), 'should return sortingColumns from parameterSelectionData_1 fixtures': () => selectSortingColumns(stateFactory(parameterSelectionData_1)), 'should return columns from parameterSelectionData_1 fixtures': () => selectColumns(stateFactory(parameterSelectionData_1)), 'should return appDefinition from parameterSelectionData_1 fixtures': () => selectAppDefinition(stateFactory(parameterSelectionData_1)), 'should return hostgroupId from parameterSelectionData_1 fixtures': () => selectHostgroupId(stateFactory(parameterSelectionData_1)), }; describe('ParameterSelectionSelectors', () => testSelectorsSnapshotWithFixtures(fixtures));
Version data entries
6 entries across 6 versions & 1 rubygems