Skip to content

Commit

Permalink
BAH-3175 | Deepti,Sweety | Fix. Rename test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
deeptirawat1510 committed Nov 29, 2023
1 parent 85ae1d6 commit d76a116
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/test/unit/reports/controllers/reportsController.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ describe("ReportsController", function () {
expect(scope.formats['HTML']).toBe('text/html');
});

it('should initialise date range with supportedDateRange config', function () {
it('should return the same start and stop date when selected date range is today', function () {
rootScope.default.reportsRequiringDateRange = {
dateRangeType: new Date()
};
Expand All @@ -120,7 +120,7 @@ describe("ReportsController", function () {
];

previousMonthTestCases.forEach(({ currentDate, expectedStartDate, expectedStopDate }) => {
it(`should return previous date and month when ${currentDate}`, function () {
it(`should return previous month start and stop date when current date is ${currentDate} and selected date range is previous month`, function () {
var mockedDate = new Date(currentDate);
spyOn(window, 'Date').and.callFake(function (year, month, day) {
if (arguments.length === 3) {
Expand Down

0 comments on commit d76a116

Please sign in to comment.