module.exports = function(config){
  var opalPath;
  if(process.env.TRAVIS){
    python_version = process.env.TRAVIS_PYTHON_VERSION;
    opalPath = '/home/travis/virtualenv/python' + python_version + '/src/opal';
  }
  else{
    opalPath = '../../opal';
  }
  var karmaDefaults = require(opalPath + '/config/karma_defaults.js');
  var karmaDir = __dirname;
  var coverageFiles = [
    __dirname + '/../referral/static/js/referral/*.js',
    __dirname + '/../referral/static/js/referral/controllers/*.js'
  ];
  var includedFiles = [
      __dirname + '/../referral/static/js/referral/*.js',
      __dirname + '/../referral/static/js/referral/controllers/*.js',
      __dirname + '/../referral/static/js/test/*.js',
  ];

  var defaultConfig = karmaDefaults(karmaDir, coverageFiles, includedFiles);
  config.set(defaultConfig);
};

@@ -348,16 +348,24 @@
 _dirname
+ + '/..'
 ;%0A  var 
@@ -758,16 +758,31 @@
 efaults(
+includedFiles, 
 karmaDir
@@ -800,23 +800,8 @@
 iles
-, includedFiles
 );%0A 

Update karma.conf.js