summaryrefslogtreecommitdiffstats
path: root/tests/karma.config.js
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2014-11-03 11:18:52 +0100
committerMorris Jobke <hey@morrisjobke.de>2014-11-03 20:54:50 +0100
commit1a405e56f5aa4442c2bdbb41a233fc13b6a101a3 (patch)
tree9df7ad6ef6ab9191fe58110f67c9a5aac6cd51d7 /tests/karma.config.js
parentd763b320486a3cd475c0e7a1537b0954341287d6 (diff)
downloadnextcloud-server-1a405e56f5aa4442c2bdbb41a233fc13b6a101a3.tar.gz
nextcloud-server-1a405e56f5aa4442c2bdbb41a233fc13b6a101a3.zip
replace moment.js with bower version
* fix JS unit tests
Diffstat (limited to 'tests/karma.config.js')
-rw-r--r--tests/karma.config.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/karma.config.js b/tests/karma.config.js
index 357fcf3f122..f67fa9977c2 100644
--- a/tests/karma.config.js
+++ b/tests/karma.config.js
@@ -99,6 +99,7 @@ module.exports = function(config) {
// note that the loading order is important that's why they
// are specified in a separate file
var corePath = 'core/js/';
+ var vendorPath = 'core/vendor/';
var coreModule = require('../' + corePath + 'core.json');
var testCore = false;
var files = [];
@@ -134,6 +135,12 @@ module.exports = function(config) {
}
}
+ // add vendor library files
+ for ( i = 0; i < coreModule.vendor.length; i++ ) {
+ srcFile = vendorPath + coreModule.vendor[i];
+ files.push(srcFile);
+ }
+
// TODO: settings pages
// need to test the core app as well ?