Bert Leunis pushed to branch release/5.0 at cms-community / hippo-addon-channel-manager
Commits: 6e707e0c by Bert Leunis at 2018-01-15T15:17:54+01:00 CHANNELMGR-1658 fix window reference - - - - - 1 changed file: - frontend-ng/src/angularjs/channel/hippoIframe/hippoIframe.service.spec.js Changes: ===================================== frontend-ng/src/angularjs/channel/hippoIframe/hippoIframe.service.spec.js ===================================== --- a/frontend-ng/src/angularjs/channel/hippoIframe/hippoIframe.service.spec.js +++ b/frontend-ng/src/angularjs/channel/hippoIframe/hippoIframe.service.spec.js @@ -130,9 +130,9 @@ describe('HippoIframeService', () => { }); it('reports page loads as user activity', () => { - spyOn($window.APP_TO_CMS, 'publish'); + spyOn(window.APP_TO_CMS, 'publish'); HippoIframeService.signalPageLoadCompleted(); - expect($window.APP_TO_CMS.publish).toHaveBeenCalledWith('user-activity'); + expect(window.APP_TO_CMS.publish).toHaveBeenCalledWith('user-activity'); }); it('ignores page loads which are no reloads', () => { View it on GitLab: https://code.onehippo.org/cms-community/hippo-addon-channel-manager/commit/6e707e0c3540298c5d6cebffafe84ddf8558898e --- View it on GitLab: https://code.onehippo.org/cms-community/hippo-addon-channel-manager/commit/6e707e0c3540298c5d6cebffafe84ddf8558898e You're receiving this email because of your account on code.onehippo.org.
_______________________________________________ Hippocms-svn mailing list Hippocms-svn@lists.onehippo.org https://lists.onehippo.org/mailman/listinfo/hippocms-svn