Files which are loaded via RequireJs do not need to be individually declared in karma config files. If we give karma directories, it will serve all the files in them.
24 lines
718 B
JavaScript
24 lines
718 B
JavaScript
(function(requirejs) {
|
|
'use strict';
|
|
requirejs.config({
|
|
baseUrl: '/base/',
|
|
paths: {
|
|
"moment": "xmodule_js/common_static/js/vendor/moment.min",
|
|
"modernizr": "edx-pattern-library/js/modernizr-custom",
|
|
"afontgarde": "edx-pattern-library/js/afontgarde",
|
|
"edxicons": "edx-pattern-library/js/edx-icons",
|
|
"draggabilly": "xmodule_js/common_static/js/vendor/draggabilly"
|
|
},
|
|
"moment": {
|
|
exports: "moment"
|
|
},
|
|
"modernizr": {
|
|
exports: "Modernizr"
|
|
},
|
|
"afontgarde": {
|
|
exports: "AFontGarde"
|
|
}
|
|
});
|
|
|
|
}).call(this, requirejs, define); // jshint ignore:line
|