Dashboard karma is missing framework files

We currently have two Karma files: one for horizon and one for
dashboard. Because dashboard code relies horizon, the karma conf in
dashboard should include the needed files from framework.

Change-Id: I06f2ebe1da845f559a6562156e8ad9e6a7ffb128
Closes-Bug: #1473176
This commit is contained in:
Thai Tran 2015-07-09 11:48:50 -07:00
parent 5f62bc36a1
commit b55df4fff0

View File

@ -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.