codecombat/app/assets/javascripts/run-tests.js
2016-04-15 15:36:35 -07:00

13 lines
512 B
JavaScript

// Helper for running tests through Karma.
// Hooks into the test view logic for running tests.
window.userObject = {_id:'1'};
window.serverConfig = {picoCTF: false, production: false};
window.StripeCheckout = {configure: function (){}};
initialize = require('core/initialize');
initialize.init();
application.testing = true;
console.debug = function() {}; // Karma conf doesn't seem to work? Debug messages are still emitted when they shouldn't be.
TestView = require('views/TestView');
TestView.runTests();