Commit efd27a92 authored by Phil Hughes's avatar Phil Hughes

Merge branch '5088-fix-karma-failure-date-change' into 'master'

Fix test failure by using manual currentDate values

Closes #5088

See merge request gitlab-org/gitlab-ee!4783
parents b4bbb974 dc80ecf4
......@@ -93,6 +93,9 @@ describe('TimelineHeaderItemComponent', () => {
timeframeIndex,
timeframeItem,
});
vm.currentYear = mockTimeframe[timeframeIndex].getFullYear();
vm.currentMonth = mockTimeframe[timeframeIndex].getMonth() + 1;
expect(vm.timelineHeaderClass).toBe('label-dark');
});
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment