This is a migrated thread and some comments may be shown as answers.

Issue adding Kendo to javascript tests

1 Answer 81 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ryan
Top achievements
Rank 1
Ryan asked on 08 Feb 2016, 05:47 PM

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:

PhantomJS 1.9.8 (Windows 7 0.0.0) ERROR
  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
  });
};

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 11 Feb 2016, 08:59 AM
Hello Ryan,

You posted your question under the Telerik Platform product line. Telerik Platform is an end-to-end solution for mobile development. Your question seems to be about testing your Kendo UI-based website.

In order to get the assistance you need, please either submit a support ticket for Kendo UI Professional, post this question in the Kendo UI forums or on Stack Overflow where the Kendo UI community discussions take place.

Regards,
Tsvetina
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Ryan
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or