Error while integrating html with testacularjs

后端 未结 2 1565
梦如初夏
梦如初夏 2021-02-15 12:52

How do I integrate (html) fixtures with testacular? Is there any recommendation for performing DOM based tests or is it an anti-pattern?

Objective : I am trying to test

2条回答
  •  臣服心动
    2021-02-15 13:30

    As stated on http://testacular.github.com/0.6.0/config/files.html, since version 0.5.2 you can use the new configuration syntax:

    files = [
      JASMINE,
      JASMINE_ADAPTER,
      'test/spec/**/*.js',
      {
        pattern: 'test/fixtures/*.html',
        watched: true,
        included: false,
        served: true
      }
    ];
    

    I just tried it and it works fine for me.

提交回复
热议问题