-
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.
totten authoredThis 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.