Merge pull request #8165 from owncloud/karma-removewarnings

Remove annoying karma 404 warnings for images
This commit is contained in:
Lukas Reschke 2014-04-13 12:40:42 +02:00
commit 9de3c1b59d
1 changed files with 8 additions and 0 deletions

View File

@ -121,6 +121,9 @@ module.exports = function(config) {
files.push('apps/' + appsToTest[i] + '/tests/js/*.js');
}
// serve images to avoid warnings
files.push({pattern: 'core/img/**/*', watched: false, included: false, served: true});
config.set({
// base path, that will be used to resolve files and exclude
@ -137,6 +140,11 @@ module.exports = function(config) {
],
proxies: {
// prevent warnings for images
'/context.html//core/img/': 'http://localhost:9876/base/core/img/'
},
// test results reporter to use
// possible values: 'dots', 'progress', 'junit', 'growl', 'coverage'
reporters: ['dots', 'junit', 'coverage'],