Skip to content

Commit

Permalink
Fix tests (linagora#602)
Browse files Browse the repository at this point in the history
Test failures were due to changes on esn-frontend-common-libs
  • Loading branch information
alagane authored Sep 27, 2021
1 parent 504c6f9 commit 67ee579
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ describe('The calendarCurrentView factory', function() {
var locationMock, matchmediaMock, calMoment, calendarCurrentView, CAL_AVAILABLE_VIEWS, ESN_MEDIA_QUERY_SM_XS;

beforeEach(function() {
locationMock = { search: sinon.spy(), url: function() { return ''; } };
locationMock = {
search: sinon.spy(),
url: function() { return ''; },
path: angular.noop
};
matchmediaMock = {
is: function() {
return false;
Expand Down
3 changes: 3 additions & 0 deletions src/esn.calendar.libs/app/services/fc-moment.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ describe('calMoment factory', function() {
},
Waves: {
init: function() {}
},
localStorage: {
setItem: angular.noop
}
};

Expand Down

0 comments on commit 67ee579

Please sign in to comment.