Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
- fixed failed js unit test
  • Loading branch information
temi committed Sep 10, 2024
1 parent 05ef50f commit a7cd447
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/test/js/spec/DatePickerModelSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ describe("The documents contains view models for working with documents", functi
expect($location.href).toBeUndefined();

model.fromDate('2022-02-01');
expect($location.href).toEqual('?query=Test&fromDate=2022-02-01&toDate=2022-06-30&isFilterByCompletedProjects=true');
var location = $location.href;
location = location.replace(/&?clientTimeZone=[^&]*/, '');
expect(location).toEqual('?query=Test&fromDate=2022-02-01&toDate=2022-06-30&isFilterByCompletedProjects=true');
});
});

0 comments on commit a7cd447

Please sign in to comment.