title: unit testing Module failed to load + karma + ionic angularAngular
body: <p>Trying to load controller module in unit testing karma + jasmine + ionic Angular 1.5.3.</p>
  
  <p>Module/Controller file</p>
  
  <pre><code>angular.module('App.View.Controllers', []).controller('ListController',
  function($scope){
  $scope._userName = UserService.getUserObject().maxperson;
  });
  
  describe("ListController", function(){
  var $scope, $controller, ListController;
  beforeEach(function () {
  module('App.View.Controllers');
  });
  beforeEach(inject(function(_$rootScope_, _$controller_) {
  $scope = $rootScope.$new();
  $controller = _$controller_;
  ListController = $controller('ListController', {$scope: $scope});
  }));
  it("has a dummy controller", function(){
  expect(2+2).toEqual(4);
  });
  it('should be defined', function() {
  expect(ListController).toBeDefined();
  });
  });
  </code></pre>
  
  <p>Gives me error:     </p>
  
  <blockquote>
    <p>Error: [$injector:modulerr] Failed to instantiate module App.View.Controllers due to:
        Error: [$injector:nomod] Module 'App.View.Controllers' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.<br>
        <a href="http://errors.angularjs.org/1.5.3/" rel="nofollow noreferrer">http://errors.angularjs.org/1.5.3/</a>$injector/nomod?p0=App.View.Controllers
            at node_modules/angular/angular.js:68:12  </p>
  </blockquote>
  
  <p>It is ionic app. Actually controller loads dependency also but for time sake I have commented it out to make a simple controller loads.  </p>
  
  <pre><code>package.json file
  {
      "name": "karma-2174",
      "version": "1.0.0",
      "description": "",
      "devDependencies": {
      "@uirouter/angularjs": "^1.0.3",
      "angular": "^1.5.3",
      "angular-mocks": "^1.5.3",
      "jasmine-core": "^2.0.4",
      "karma": "^1.5.0",
      "karma-chrome-launcher": "^2.0.0",
      "karma-jasmine": "^1.1.0"
      },
      "scripts": {
      "test": "karma start"
      },
      "author": "",
      "license": "ISC"
  }
  </code></pre>