2014-06-07 21:15:57 -04:00
|
|
|
// Helper for running tests through Karma.
|
|
|
|
// Hooks into the test view logic for running tests.
|
|
|
|
|
2015-02-05 16:58:07 -05:00
|
|
|
|
2016-02-19 16:50:00 -05:00
|
|
|
window.userObject = {_id:'1'};
|
|
|
|
window.serverConfig = {picoCTF: false, production: false};
|
|
|
|
window.StripeCheckout = {configure: function (){}};
|
2014-12-12 14:36:41 -05:00
|
|
|
initialize = require('core/initialize');
|
|
|
|
initialize.init();
|
2016-04-15 17:43:18 -04:00
|
|
|
application.testing = true;
|
2014-08-15 15:28:32 -04:00
|
|
|
console.debug = function() {}; // Karma conf doesn't seem to work? Debug messages are still emitted when they shouldn't be.
|
2014-06-16 14:38:03 -04:00
|
|
|
TestView = require('views/TestView');
|
2015-02-05 16:58:07 -05:00
|
|
|
TestView.runTests();
|