diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2014-04-13 12:40:42 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2014-04-13 12:40:42 +0200 |
commit | 9de3c1b59d808b9725e728a2956f66b1d02274fe (patch) | |
tree | ba0460e2d7d179e678031b03c37267e9ec2c6a63 | |
parent | 982d2bcc5b829e7d9e8db5f1111570d80f537c5f (diff) | |
parent | e92fe47d2af67f844584da2d9e802f77815d6aa4 (diff) | |
download | nextcloud-server-9de3c1b59d808b9725e728a2956f66b1d02274fe.tar.gz nextcloud-server-9de3c1b59d808b9725e728a2956f66b1d02274fe.zip |
Merge pull request #8165 from owncloud/karma-removewarnings
Remove annoying karma 404 warnings for images
-rw-r--r-- | tests/karma.config.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/karma.config.js b/tests/karma.config.js index ed9836ed4c3..338e3f868e9 100644 --- a/tests/karma.config.js +++ b/tests/karma.config.js @@ -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'], |