Files
edx-platform/common/lib/xmodule/xmodule/js/karma_runner.js
2016-08-08 15:59:18 -04:00

12 lines
326 B
JavaScript

/* eslint-env node */
// overwrite the loaded method and manually start the karma after a delay
// Somehow the code initialized in jQuery's onready doesn't get called before karma auto starts
'use strict';
window.__karma__.loaded = function() {
setTimeout(function() {
window.__karma__.start();
}, 1000);
};