Skip to content
Snippets Groups Projects
  • totten's avatar
    fc64d0fd
    (NFC) karma - Enable all Civi components (not just CiviCase) · fc64d0fd
    totten authored
    This is a small cleanup (suggested by @colemanw) that makes the `karma.conf.js` appear more general.
    
    It modifies the startup process for a test-runner; as long as the test-runner still gives the
    same output, it should be safe.
    
    Before
    ------
    
    `karma` loads baseline Angular modules and CiviCase Angular modules.
    
    After
    -----
    
    `karma` loads baseline Angular modules and any/all component-based Angular modules
    
    Comment
    -------
    
    Why was it only CiviCase?  Not certain...  but I *think* it's because
    (historically) `crmMailing.ang.php` did extra work to build `settings`, and
    this extra work was a bit too heavy.  That work has moved (`settings` became
    `settingsFactory`) and maybe makes this safer.
    fc64d0fd
    History
    (NFC) karma - Enable all Civi components (not just CiviCase)
    totten authored
    This is a small cleanup (suggested by @colemanw) that makes the `karma.conf.js` appear more general.
    
    It modifies the startup process for a test-runner; as long as the test-runner still gives the
    same output, it should be safe.
    
    Before
    ------
    
    `karma` loads baseline Angular modules and CiviCase Angular modules.
    
    After
    -----
    
    `karma` loads baseline Angular modules and any/all component-based Angular modules
    
    Comment
    -------
    
    Why was it only CiviCase?  Not certain...  but I *think* it's because
    (historically) `crmMailing.ang.php` did extra work to build `settings`, and
    this extra work was a bit too heavy.  That work has moved (`settings` became
    `settingsFactory`) and maybe makes this safer.