2021-09-04 01:27:46 +05:30
|
|
|
import * as getters from '~/cycle_analytics/store/getters';
|
|
|
|
import {
|
|
|
|
allowedStages,
|
|
|
|
stageMedians,
|
|
|
|
transformedProjectStagePathData,
|
|
|
|
selectedStage,
|
2021-10-27 15:23:28 +05:30
|
|
|
stageCounts,
|
2021-09-04 01:27:46 +05:30
|
|
|
} from '../mock_data';
|
|
|
|
|
|
|
|
describe('Value stream analytics getters', () => {
|
|
|
|
describe('pathNavigationData', () => {
|
|
|
|
it('returns the transformed data', () => {
|
2021-10-27 15:23:28 +05:30
|
|
|
const state = { stages: allowedStages, medians: stageMedians, selectedStage, stageCounts };
|
2021-09-04 01:27:46 +05:30
|
|
|
expect(getters.pathNavigationData(state)).toEqual(transformedProjectStagePathData);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|