I have added the kendo.directives to my angular app, but when I add the kendo.web.min.js file to the karma.conf file, it gives an error. Any help would be appreciated.
Error:
[31mPhantomJS 1.9.8 (Windows 7 0.0.0) ERROR[39m
TypeError: 'undefined' is not an object (evaluating 'e.extend')
at C:/Dev/Source/OneKey_Web/MET.OpenLink/MET.OpenLink.Web/scripts/kendo/kendo.web.min.js:9
angular app declaration:
var openLinkApp = angular.module('openLinkApp', [ 'kendo.directives']);
karma.conf.js :
module.exports = function(config) {
config.set({
basePath: '',
frameworks: ['jasmine'],
plugins: [
'karma-jasmine',
'karma-coverage',
'karma-phantomjs-launcher',
'karma-teamcity-reporter',
'karma-nested-reporter',
'karma-super-dots-reporter'
],
// list of files / patterns to load in the browser
files: [
'scripts/jquery/jquery.js',
'scripts/jquery/jquery2-noconflict.js',
'scripts/lodash.min.js',
'scripts/moment/moment.min.js',
'scripts/angularjs/framework/angular.js',
'scripts/angularjs/framework/angular-*.min.js',
'scripts/angularjs/modules/**/*.js',
'scripts/angular-simple-logger.js',
'scripts/angularjs/framework/angular-mocks.js',
'scripts/app/openLink.app.js',
'scripts/kendo/kendo.web.min.js',
'scripts/app/**/*.js',
],
exclude: [ ],
preprocessors: {
'Scripts/app/openLink.app.js': 'coverage',
'scripts/kendo/kendo.web.min.js': 'coverage',
'scripts/app/**/*.js': 'coverage'
},
reporters: ['super-dots', 'nested'],
coverageReporter: {
reporters: [
{ type: 'html', dir : 'coverage/' },
{ type: 'teamcity' }
]
},
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: false,
browsers: ['PhantomJS'],
singleRun: true
});
};