d406a15e8c
Some modules used to assume that the angular helpers would always be available when their script was executed. This could be a problem when using `angular-loader` and the module file happened to get loaded before the core `angular.js` file. This commit fixes the issue by delaying the access to angular helpers, until they are guaranteed to be available. Affected modules: - `ngAnimate` - `ngMessageFormat` - `ngMessages` - `ngRoute` - `ngSanitize` Fixes #9140 Closes #14794
18 lines
410 B
JavaScript
18 lines
410 B
JavaScript
'use strict';
|
|
|
|
var angularFiles = require('./angularFiles');
|
|
var sharedConfig = require('./karma-shared.conf');
|
|
|
|
module.exports = function(config) {
|
|
sharedConfig(config, {testName: 'AngularJS: modules', logFile: 'karma-modules.log'});
|
|
|
|
config.set({
|
|
files: angularFiles.mergeFilesFor('karmaModules'),
|
|
|
|
junitReporter: {
|
|
outputFile: 'test_out/modules.xml',
|
|
suite: 'modules'
|
|
}
|
|
});
|
|
};
|