Sha256: 46ca5a50aa80879f66d19ed386fef404d64f9977040613d3f0bd0803c8e18c8f
Contents?: true
Size: 1.02 KB
Versions: 2
Compression:
Stored size: 1.02 KB
Contents
import { testSelectorsSnapshotWithFixtures } from 'react-redux-test-utils'; import { selectEditMode, selectAnsiblePlaybookServices, selectColumns, } from '../ApplicationDefinitionImportSelectors'; import { applicationDefinitionImportConfData1 } from '../__fixtures__/applicationDefinitionImportConfData1.fixtures'; const stateFactory = obj => ({ foremanAcd: { applicationDefinitionImportConf: obj, }, }); const fixtures = { 'should return editMode from applicationDefinitionImportConfData1 fixtures': () => selectEditMode(stateFactory(applicationDefinitionImportConfData1)), 'should return services from applicationDefinitionImportConfData1 fixtures': () => selectAnsiblePlaybookServices( stateFactory(applicationDefinitionImportConfData1) ), 'should return columns from applicationDefinitionImportConfData1 fixtures': () => selectColumns(stateFactory(applicationDefinitionImportConfData1)), }; describe('ApplicationDefinitionImportSelectors', () => testSelectorsSnapshotWithFixtures(fixtures));
Version data entries
2 entries across 2 versions & 1 rubygems