Mathijs den Burger pushed to branch bugfix/cm-overlay-CHANNELMGR-1122 at 
cms-community / hippo-addon-channel-manager


Commits:
59258e17 by Mathijs den Burger at 2017-01-24T09:47:16+01:00
CHANNELMGR-1122 Don't pass real deps to controller

Passing dependencies this way is only needed if a tests does not
use the real dependencies but a mocked version of them.

- - - - -


1 changed file:

- 
frontend-ng/src/angularjs/channel/componentCatalog/componentCatalog.controller.spec.js


Changes:

=====================================
frontend-ng/src/angularjs/channel/componentCatalog/componentCatalog.controller.spec.js
=====================================
--- 
a/frontend-ng/src/angularjs/channel/componentCatalog/componentCatalog.controller.spec.js
+++ 
b/frontend-ng/src/angularjs/channel/componentCatalog/componentCatalog.controller.spec.js
@@ -33,10 +33,7 @@ describe('componentCatalogController', () => {
       MaskService = _MaskService_;
       ComponentCatalogService = _ComponentCatalogService_;
 
-      $ctrl = $componentController('componentCatalog', {
-        MaskService,
-        ComponentCatalogService,
-      });
+      $ctrl = $componentController('componentCatalog');
     });
   });
 



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

Reply via email to