title: Error: [$injector:unpr] Unknown provider: $stateProvider <- $state
body: <p>Executing below unit test gives "Error: [$injector:unpr] Unknown provider: $stateProvider &lt;- $state". I have attached the angular-ui-router.min.js in karma file.</p>
  
  <pre><code> describe("Unit tests", function() {
  
    var $rootScope, $injector, $state;
    console.log("hello");
  
    beforeEach(inject(function(_$rootScope_, _$state_, _$injector_, $templateCache) {
      console.log("hello1");
      $rootScope = _$rootScope_;
      $injector = _$injector_;
      $state = _$state_;
    }));
  
    describe("states", function() {
      it("verify state configuration", function() {
          var config = $state.get("DRaaS");
          console.log(config, "cc");
      });
    });
  });
  </code></pre>