Jasmine ";el";头必须存在于DOM中

Jasmine ";el";头必须存在于DOM中,jasmine,marionette,grunt-contrib-jasmine,Jasmine,Marionette,Grunt Contrib Jasmine,我用grunt contrib jasmine做木偶测试。我的规范通过了,但我得到了这个错误:“错误:在DOM中必须存在一个“el”头”,在木偶节点源中。我找不到这个问题 我的grunt配置是: jasmine : { src : [ 'common/js/app.js', 'common/js/model/*.js', 'common/js/collection/*.js', 'common/js/view/*.js'

我用grunt contrib jasmine做木偶测试。我的规范通过了,但我得到了这个错误:“错误:在DOM中必须存在一个“el”头”,在木偶节点源中。我找不到这个问题

我的grunt配置是:

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'
      }

您是否有任何带有选择器“header”的区域?e、 g.
区域:{'headerRegion':'header'}
对于无头DOM,您使用什么?