Sha256: 6a5406eb414dcd94588eb12257599d24950430dc91a277136e12a4f16baa5576
Contents?: true
Size: 1.75 KB
Versions: 2
Compression:
Stored size: 1.75 KB
Contents
import { testSelectorsSnapshotWithFixtures } from 'react-redux-test-utils'; import { selectEditMode, selectAppDefinition, selectHosts, selectColumns, selectServices, selectParametersData, selectAnsibleVarsAll, selectParamEditMode, } from '../ApplicationInstanceSelectors'; import { applicationInstanceConfData_1, } from '../__fixtures__/applicationInstanceConfData_1.fixtures'; const stateFactory = obj => ({ foremanAcd: { applicationInstanceConf: obj, }, }); const fixtures = { 'should return editMode from applicationInstanceConfData_1 fixtures': () => selectEditMode(stateFactory(applicationInstanceConfData_1)), 'should return appDefinition from applicationInstanceConfData_1 fixtures': () => selectAppDefinition(stateFactory(applicationInstanceConfData_1)), 'should return hosts from applicationInstanceConfData_1 fixtures': () => selectHosts(stateFactory(applicationInstanceConfData_1)), 'should return columns from applicationInstanceConfData_1 fixtures': () => selectColumns(stateFactory(applicationInstanceConfData_1)), 'should return services from applicationInstanceConfData_1 fixtures': () => selectServices(stateFactory(applicationInstanceConfData_1)), 'should return parametersData from applicationInstanceConfData_1 fixtures': () => selectParametersData(stateFactory(applicationInstanceConfData_1)), 'should return ansibleVarsAll from applicationInstanceConfData_1 fixtures': () => selectAnsibleVarsAll(stateFactory(applicationInstanceConfData_1)), 'should return ParamEditMode from applicationInstanceConfData_1 fixtures': () => selectParamEditMode(stateFactory(applicationInstanceConfData_1)), }; describe('ApplicationInstanceSelectors', () => testSelectorsSnapshotWithFixtures(fixtures));
Version data entries
2 entries across 2 versions & 1 rubygems