Tobias Jeger pushed to branch bugfix/CHANNELMGR-772 at cms-community / 
hippo-addon-channel-manager


Commits:
c966107a by Tobias Jeger at 2016-06-22T09:22:42+02:00
CHANNELMGR-772 Add check to unit test

- - - - -


1 changed file:

- frontend-ng/src/angularjs/channel/channel.service.spec.js


Changes:

=====================================
frontend-ng/src/angularjs/channel/channel.service.spec.js
=====================================
--- a/frontend-ng/src/angularjs/channel/channel.service.spec.js
+++ b/frontend-ng/src/angularjs/channel/channel.service.spec.js
@@ -97,6 +97,7 @@ describe('ChannelService', () => {
       id: 'testChannelId',
       mountPath: '/testMount',
       siteMapId: 'testSiteMapId',
+      contextPath: 'testContextPath',
     };
 
     spyOn(CmsService, 'subscribe');
@@ -111,6 +112,7 @@ describe('ChannelService', () => {
 
     $rootScope.$digest();
 
+    
expect(ConfigServiceMock.setContextPathForChannel).toHaveBeenCalledWith('testContextPath');
     expect(HstService.getChannel).toHaveBeenCalledWith(testChannel.id);
     expect(HstService.getFeatures).toHaveBeenCalled();
     expect(SessionServiceMock.initialize).toHaveBeenCalledWith(testChannel);



View it on GitLab: 
https://code.onehippo.org/cms-community/hippo-addon-channel-manager/commit/c966107af88455553e0d34e78984c6131b6d1724
_______________________________________________
Hippocms-svn mailing list
Hippocms-svn@lists.onehippo.org
https://lists.onehippo.org/mailman/listinfo/hippocms-svn

Reply via email to