diff --git a/openstack_dashboard/karma.conf.js b/openstack_dashboard/karma.conf.js index 2c1412601c..215f69c374 100644 --- a/openstack_dashboard/karma.conf.js +++ b/openstack_dashboard/karma.conf.js @@ -83,7 +83,14 @@ module.exports = function (config) { // TODO: These should be mocked. '../../horizon/static/horizon/js/horizon.js', - '../../horizon/static/framework/util/http/http.js', + + /** + * Include framework source code from horizon that we need. + * Otherwise, karma will not be able to find them when testing. + * These files should be mocked in the foreseeable future. + */ + '../../horizon/static/framework/**/*.module.js', + '../../horizon/static/framework/**/!(*.spec|*.mock).js', /** * First, list all the files that defines application's angular modules.