'use strict';
/**
 * PhantomJS does not have a `bind` method :(
 * polyfill'it!
 */
Function.prototype.bind=Function.prototype.bind||function(b){if(typeof this!=="function"){throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");}var a=Array.prototype.slice,f=a.call(arguments,1),e=this,c=function(){},d=function(){return e.apply(this instanceof c?this:b||window,f.concat(a.call(arguments)));};c.prototype=this.prototype;d.prototype=new c();return d;};

var tests = Object.keys(window.__karma__.files).filter(function (file) {
      return /-spec\.js$/.test(file);
});

requirejs.config({
    // Karma serves files from '/base'
    baseUrl: '/base/src',

    paths: {
        'jquery': '../lib/jquery/jquery'
    },

    // ask Require.js to load these files (all our tests)
    deps: tests,

    // start test run, once Require.js is done
    callback: window.__karma__.start
});


'use strict';
/**
 * PhantomJS does not have a `bind` method :(
 * polyfill'it!
 */
Function.prototype.bind = Function.prototype.bind || function(b) {
    if (typeof this !== "function") {
        throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");
    }
    var a = Array.prototype.slice,
        f = a.call(arguments, 1),
        e = this,
        c = function() {}, d = function() {
            return e.apply(this instanceof c ? this : b || window, f.concat(a.call(arguments)));
        };
    c.prototype = this.prototype;
    d.prototype = new c();
    return d;
};

var tests = Object.keys(window.__karma__.files).filter(function(file) {
    return /-spec\.js$/.test(file);
});

requirejs.config({
    // Karma serves files from '/base'
    baseUrl: '/base/src',

    paths: {
        'jquery': '../lib/jquery/jquery'
    },

    // ask Require.js to load these files (all our tests)
    deps: tests,

    // start test run, once Require.js is done
    callback: window.__karma__.start
});
Update test main format