'use strict';

var extend = require('extend');
var path = require('path');
var rump = require('rump');
var karma = require('./karma');

exports.rebuild = function() {
  rump.configs.main.globs = extend(true, {
    build: {
      tests: rump.configs.main.globs.build.scripts
    }
  }, rump.configs.main.globs);

  rump.configs.main.paths = extend(true, {
    source: {
      tests: 'tests'
    }
  }, rump.configs.main.paths);

  rump.configs.main.test = extend(true, {
    browsers: ['PhantomJS'],
    frameworks: [],
    reporters: ['progress'],
    karma: {}
  }, rump.configs.main.test);

  exports.karma = karma();
};

exports.rebuild();

@@ -494,72 +494,8 @@
 JS'%5D
-,%0A    frameworks: %5B%5D,%0A    reporters: %5B'progress'%5D,%0A    karma: %7B%7D
 %0A  %7D

Remove unneeded configs