title: getting error when testing a controller using karma in angularjs
body: <p>I want to test my application using Karma . i have configured it and write a simple test suite for checking if a controller is present in my application or not. i am getting the error "Type Error :  cannot call method method 'equal ' of undefined. My test suite condition is given below. Please suggest</p>
  
  <pre><code>describe('module present', function() {
      beforeEach(angular.mock.module('demoapp'));
      it('should have a demoCtrl controller', function() {
          expect(demoapp.ProductCtrl).not.to.equal(null);
      });
  });
  </code></pre>
  
  <p>my karma.config is like this</p>
  
  <pre><code> files : [
        'Scripts/angular.js',
        'Scripts/angular-translate.js',
        'Scripts/angular-translate-loader-static-files.js',
        'Scripts/angular-mocks.js',
        'Scripts/angular-*.js',
        'Test/lib/angular/angular-mocks.js',
        'Scripts/ProjectScript/app.js',
        'Scripts/ProjectScript/DemoData.js',
        'Scripts/ProjectScript/TimerController.js',     
        'Scripts/ProjectScript/**/*.js',
        'Test/unit/**/*.js'
  
      ],
  
      exclude : [
        'Scripts/angular-loader.js',
        'Scripts/angular-scenario.js'
      ],
  </code></pre>
  
  <p>Thanks and regards
  utpal</p>