Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jquery-ui/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jasmine 使用时注入是在角度测试时给出错误 我的模块是: 我的karma配置文件是: 我的测试套件是: 现在当我运行业力时,它显示了一个例外_Jasmine_Karma Runner - Fatal编程技术网

Jasmine 使用时注入是在角度测试时给出错误 我的模块是: 我的karma配置文件是: 我的测试套件是: 现在当我运行业力时,它显示了一个例外

Jasmine 使用时注入是在角度测试时给出错误 我的模块是: 我的karma配置文件是: 我的测试套件是: 现在当我运行业力时,它显示了一个例外,jasmine,karma-runner,Jasmine,Karma Runner,Miner/这个问题与$inject无关,它完全基于您在karma conf.js中加载的文件。我没有加载库,当前加载库依赖于该库 var app = angular.module('customer', [ 'customerAPI', 'uldbfilters', 'ngRoute', 'ui.bootstrap', 'nvd3', 'chart.js', 'ui.bootstrap.datetimepicker', 'ui.d

Miner/这个问题与$inject无关,它完全基于您在karma conf.js中加载的文件。我没有加载库,当前加载库依赖于该库

var app = angular.module('customer',
[
    'customerAPI',
    'uldbfilters',
    'ngRoute',
    'ui.bootstrap',
    'nvd3',
    'chart.js',
    'ui.bootstrap.datetimepicker',
    'ui.dateTimeInput',
    'LocalStorageModule',
    'ngAnimate',
    'ngMaterial'
]);
module.exports = function(config) {
config.set({
   basePath: '',
   frameworks: [
       'jasmine',
       'jasmine-matchers'
   ],
   files: [
       '../../static/bower_components/jquery/dist/jquery.js',
       '../../static/bower_components/jquery-*/jquery-*.js',
       '../../static/bower_components/jquery-*/**/jquery-*.js',
       '../../static/bower_components/angular-charts/chart.js',
       '../../static/bower_components/angular/angular.js',
       '../../static/bower_components/angular-date-time-input/src/dateTimeInput.js',
       '../../static/bower_components/angular-bootstrap-datetimepicker/src/js/datetimepicker.js',
       '../../static/bower_components/angular-*/angular-*.js',
       '../../static/bower_components/angular-*/**/*.js',
       '../../static/rest/app/*.js',
       '../../static/rest/app/client/**/*.js',
       'test_suits_client/*.js'
   ],
   exclude: [
       '../../static/bower_components/angular-*/angular-*.min.js',
       '../../static/bower_components/angular-*/**/*.min.js',
       '../../static/bower_components/angular-*/**/index.js',
       '../../static/bower_components/angular-*/**/gulpfile.js',
       '../../static/bower_components/angular-*/**/karma.conf.js',
       '../../static/bower_components/angular-*/**/Gruntfile.js',
       '../../static/bower_components/angular-*/**/browserify.test.js'
   ],
   preprocessors: {},
   reporters: ['spec'],
   port: 9876,
   colors: true,
   logLevel: config.LOG_INFO,
   autoWatch: true,
   browsers: [
      'Firefox'
   ],
   singleRun: false,
   concurrency: Infinity
}
describe('Customer Application uldb module functionality', function() {
    beforeEach(module('customer'));
        var scope;
        beforeEach(inject(function($rootScope){
            scope = $rootScope.$new();
        }));
        it('Sample spec to test 2 + 2', function() {
            expect(2 + 2).toEqual(4);
        });
    });
});