Test component with “declare var”

后端 未结 1 1305
说谎
说谎 2020-12-21 01:13

In my angular2 app I have js file \"connection.conf.js\" with var:

var appTypeConf = \"example-app\";

Component uses the variable from \"co

相关标签:
1条回答
  • 2020-12-21 01:42

    I found the solution, I had to add connection.conf.js path to files array in karma.conf.js

    var files = [
      // ***
      'app/connection.conf.js'
    ]
    
    0 讨论(0)
提交回复
热议问题