text: // Karma configuration file
  //
  // For all available config options and default values, see:
  // https://github.com/karma-runner/karma/blob/stable/lib/config.js#L54
  
  module.exports = function (config) {
      'use strict';
  
      config.set({
          // base path, that will be used to resolve files and exclude
          basePath: '',
  
          frameworks: [
              'mocha'
          ],
  
          // list of files / patterns to load in the browser
          files: [
              'bower_components/matches.js/matches.js',
              'bower_components/chai/chai.js',
              'delegate.js',
              'test/**/*.js'
          ],
  
  
          // use dots reporter, as travis terminal does not support escaping sequences
          // possible values: 'dots', 'progress'
          // CLI --reporters progress
          reporters: ['dots'],
  
          // enable / disable watching file and executing tests whenever any file changes
          // CLI --auto-watch --no-auto-watch
          autoWatch: true,
  
          // start these browsers, currently available:
          // - Chrome
          // - ChromeCanary
          // - Firefox
          // - Opera
          // - Safari (only Mac)
          // - PhantomJS
          // - IE (only Windows)
          // CLI --browsers Chrome, Firefox, Safari
          browsers: [
              'Chrome',
              'Firefox'
          ],
  
          // if browser does not capture in given timeout [ms], kill it
          // CLI --capture-timeout 5000
          captureTimeout: 20000,
  
          // Auto run tests on start (when browsers are captured) and exit
          // CLI --single-run --no-single-run
          singleRun: false,
  
          plugins: [
              'karma-mocha',
              'karma-chrome-launcher',
              'karma-firefox-launcher',
              'karma-ie-launcher',
              'karma-phantomjs-launcher',
              'karma-safari-launcher'
          ]
      });
  };
  