title: testing angular app using karma and jasmine having error:
body: <p>I am new to angular.js. I am trying to run Karma unit tests for my application but have found a lot of problems as it expects I install all required dependencies like node.js, npm, karma etc. </p>
  
  <p>Now when i goto the my project directory and run this command karma start karma i have this error:</p>
  
  <pre><code>C:\wamp\www\First-angular-App&gt;karma start karma.conf
  ERROR [config]: Invalid config file!
  SyntaxError: Unexpected string
  </code></pre>
  
  <p>karma.conf</p>
  
  <pre><code>module.exports = function(config) {
    config.set({ 
      basePath: '', 
      frameworks: ['jasmine'], 
      exclude: [ ], 
      files: [ 'First-angular-App/source/index.html', 'First-angular-App/source/myApp.js' 'First-angular-App/source/myAppCtrl.js' ] 
      preprocessor 
      preprocessors: { }, 
      reporters: ['progress'], 
      port: 9876, 
      colors: true, 
      config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG 
      logLevel: config.LOG_INFO, 
      changes 
      autoWatch: false, 
      launcher browsers: ['Chrome'], 
      singleRun: true 
    });
  };
  </code></pre>
  
  <p>Why its giving me the error invalid config file ?</p>