我使用grunt-contrib-jasmine进行Marionette测试。我的规格通过但是我收到了这个错误:'错误:" el"标头必须存在于DOM'在木偶来源。我无法追查问题
我的咕噜声配置是:
jasmine : {
src : [
'common/js/app.js',
'common/js/model/*.js',
'common/js/collection/*.js',
'common/js/view/*.js',
'common/js/route/route.js'
],
options : {
'--web-security' : false,
'--local-to-remote-url-access' : true,
'--ignore-ssl-errors' : true,
specs : 'test/spec/*.js',
vendor: [
'bower_components/jquery-2.1.0.min/index.js',
'bower_components/jasmine-jquery/lib/jasmine-jquery.js',
'bower_components/sinonjs/sinon.js',
'bower_components/jasmine-sinon/lib/jasmine-sinon.js',
'bower_components/underscore/underscore.js',
'bower_components/bootstrap/dist/js/bootstrap.min.js',
'bower_components/backbone/backbone.js',
'bower_components/handlebars/handlebars.js',
'bower_components/marionette/lib/backbone.marionette.min.js'
],
host: 'http://localhost:3000'
}