angularjs - All karma test fails after a while -


I am testing an angular service in Karma and it works first, but after some time the test failed And I need to restart Karma.

I get the error message: Error: [$ Injector: unp] Unknown Provider: Score 2 Provider & lt; - Score 2

I run the karma with the following conf:

  module.exports = function (config) {config.set ({basepath: './', Files: ['bower_components / angular / angular.js',' bower_components / lodash / dist / lodash] js', 'bowar_component / connular-root / connector-root.js',' bower_component / connular-socks / conjunction-max. ['Karma-chrome-launcher', 'Karma-chashma',], '' ['Jams', 'Test / Mac -Jake', 'Client / JS / Score 2.js' ['Chrome'], Plugins: Chrome '],' Test '* * JS', AutoWatch: True, Frameworks: ['Chameli'], Browser:}); };  

I'm running it on a Windows 8.1 machine.

And as I said, this works for the first time, but after a few minutes all tests fail with that error message. Has anyone else got this problem and does anyone know how to fix it?

score 2 is a service, so it depends on a module .

  • Announce another module with the same name
  • To avoid
  • This module can be changed during the trial:

  • > To prevent this.

    Context


    Comments

    Popular posts from this blog

    java - Can't add JTree to JPanel of a JInternalFrame -

    javascript - data.match(var) not working it seems -

    javascript - How can I pause a jQuery .each() loop, while waiting for user input? -