Commit dc80ecf4 authored by Kushal Pandya's avatar Kushal Pandya

Fix test failure by using manual currentDate values

parent d278b76d
...@@ -93,6 +93,9 @@ describe('TimelineHeaderItemComponent', () => { ...@@ -93,6 +93,9 @@ describe('TimelineHeaderItemComponent', () => {
timeframeIndex, timeframeIndex,
timeframeItem, timeframeItem,
}); });
vm.currentYear = mockTimeframe[timeframeIndex].getFullYear();
vm.currentMonth = mockTimeframe[timeframeIndex].getMonth() + 1;
expect(vm.timelineHeaderClass).toBe('label-dark'); 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