codecombat/app/assets/javascripts/run-tests.js
David Liu 3266bd4621 Fix karma tests
* "Shim" StripeCheckout
* Fix loadDependenciesForSession test
* Update karma coverage for better perf
2015-09-09 14:02:03 -07:00

11 lines
422 B
JavaScript

// Helper for running tests through Karma.
// Hooks into the test view logic for running tests.
window.userObject = {_id:'1'}
window.StripeCheckout = {configure: function (){}}
initialize = require('core/initialize');
initialize.init();
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();