title: Angular JS Error: [$injector:nomod] Module 'portfolioMockupApp.services' is not available
body: <p>I'm attempting to write some unit tests with Karma and am receiving the following error: </p>
  
  <p>PhantomJS 1.9.8 (Mac OS X) ERROR
    Error: [$injector:nomod] Module 'portfolioMockupApp.services' 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.
    <a href="http://errors.angularjs.org/1.3.3/">http://errors.angularjs.org/1.3.3/</a>$injector/nomod?p0=portfolioMockupApp.services
    at /Users/danielbogart/Documents/coding/work/portfolio-mockup/bower_components/angular/angular.js:1749</p>
  
  <p>Also, I have two separate files within the portfolioMockupApp.services module, both saved in the scripts/services directory.</p>
  
  <p>Karma.conf files section:</p>
  
  <pre><code>  files: [
  
    'bower_components/angular/angular.js',
    'bower_components/angular-mocks/angular-mocks.js',
    'bower_components/angular-animate/angular-animate.js',
    'bower_components/angular-cookies/angular-cookies.js',
    'bower_components/angular-resource/angular-resource.js',
    'bower_components/angular-sanitize/angular-sanitize.js',
    'bower_components/angular-touch/angular-touch.js',
  
    'test/mock/**/*.js',
    'test/spec/**/*.js',
    'app/scripts/services/*.js',
    'app/scripts/directives/*.js',
    'app/scripts/controllers/*.js',
    'app/scripts/app.js',
    'node_modules/angular/angular.js',
    'node_modules/angular-mocks/angular-mocks.js',
    './src/**/*.js',
    './test/**/*.js'
  ],
  </code></pre>
  
  <p>Portfolio.js spec (first and only test currently):</p>
  
  <pre><code>'use strict';
  
  describe('Controller: PortfolioCtrl', function () {
  
  // load the controller's module
  beforeEach(module('portfolioMockupApp', 'portfolioMockupApp.services'));
  
  var PortfolioCtrl,
  scope;
  
  // Initialize the controller and a mock scope
  beforeEach(inject(function ($controller, $scope, $log, $stateParams, $state, 
  
  $rootScope,portService, portfolioCreateService) {
  scope = $rootScope.$new();
  PortfolioCtrl = $controller('PortfolioCtrl', {
    $scope: scope
    });
  }));
  
  it('should have a list of 5 tabs by default', function () {
    expect(scope.tabs.length).toBe(5);
    });
  });
  </code></pre>