return null;
}
- if (leakPeriod.mode === 'days' || leakPeriod.mode === 'NUMBER_OF_DAYS') {
+ if (
+ leakPeriod.mode === 'days' ||
+ leakPeriod.mode === 'NUMBER_OF_DAYS' ||
+ leakPeriod.mode === 'REFERENCE_BRANCH'
+ ) {
return <div className="note spacer-top">{leakPeriodLabel} </div>;
}
expect(shallowRender({ mode: 'previous_analysis' })).toMatchSnapshot();
});
+it('should render correctly for "REFERENCE_BRANCH"', () => {
+ expect(shallowRender({ mode: 'REFERENCE_BRANCH', parameter: 'master' })).toMatchSnapshot();
+});
+
it('should render correctly for "manual_baseline"', () => {
expect(shallowRender({ mode: 'manual_baseline' })).toMatchSnapshot();
expect(shallowRender({ mode: 'manual_baseline', parameter: '1.1.2' })).toMatchSnapshot();