// Karma configuration
// http://karma-runner.github.io/0.10/config/configuration-file.html

module.exports = function(config) {
  config.set({
    // base path, that will be used to resolve files and exclude
    basePath: '',

    // testing framework to use (jasmine/mocha/qunit/...)
    frameworks: ['jasmine'],

    // list of files / patterns to load in the browser
    files: [
      'app/bower_components/jquery/jquery.js',
      'app/bower_components/jasmine-jquery/lib/jasmine-jquery.js',
      'app/bower_components/lodash/dist/lodash.compat.js',
      'app/bower_components/angular/angular.js',
      'app/bower_components/angular-mocks/angular-mocks.js',
      'app/bower_components/angular-resource/angular-resource.js',
      'app/bower_components/angular-cookies/angular-cookies.js',
      'app/bower_components/angular-sanitize/angular-sanitize.js',
      'app/bower_components/angular-route/angular-route.js',
      'app/bower_components/angular-animate/angular-animate.js',
      'app/bower_components/bootstrap/dist/js/bootstrap.js',
      'app/bower_components/d3/d3.js',
      'app/bower_components/dimple/dist/dimple.v1.1.3.js',
      'app/bower_components/ng-i18next/dist/ng-i18next.js',
      'app/bower_components/leaflet-dist/leaflet.js',
      'app/bower_components/angular-leaflet-directive/dist/angular-leaflet-directive.js',
      'app/bower_components/topojson/topojson.js',
      'app/bower_components/i18next/release/i18next-1.7.1.js',
      'app/scripts/*.js',
      'app/scripts/**/*.js',
      'test/mock/**/*.js',
      'test/spec/**/*.js',

      // Fixtures
      {pattern: 'app/scripts/geo/*.json', watched: true, included: false, served: true},
      {pattern: 'app/scripts/mappings/*.json', watched: true, included: false, served: true},

    ],

    // list of files / patterns to exclude
    exclude: [],

    // web server port
    port: 8080,

    // level of logging
    // possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG
    logLevel: config.LOG_INFO,


    // enable / disable watching file and executing tests whenever any file changes
    autoWatch: false,


    // Start these browsers, currently available:
    // - Chrome
    // - ChromeCanary
    // - Firefox
    // - Opera
    // - Safari (only Mac)
    // - PhantomJS
    // - IE (only Windows)
    browsers: ['PhantomJS'],


    // Continuous Integration mode
    // if true, it capture browsers, run tests and exit
    singleRun: false
  });
};

@@ -977,32 +977,220 @@
 ar-animate.js',%0A
+      'app/bower_components/ng-table/ng-table.js',%0A      'app/bower_components/angular-promise-tracker/promise-tracker.js',%0A      'app/bower_components/angular-busy/dist/angular-busy.js',%0A
       'app/bower

update karma config