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:
parent
5f62bc36a1
commit
b55df4fff0
@ -83,7 +83,14 @@ module.exports = function (config) {
|
|||||||
|
|
||||||
// TODO: These should be mocked.
|
// TODO: These should be mocked.
|
||||||
'../../horizon/static/horizon/js/horizon.js',
|
'../../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.
|
* First, list all the files that defines application's angular modules.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user