14 lines
274 B
JavaScript
Raw Normal View History

2025-06-04 09:42:48 +08:00
/**
* Hack to expose spec count from QUnit to Karma
*/
var testCount = 0;
var qunitTest = QUnit.test;
QUnit.test = window.test = function () {
testCount += 1;
qunitTest.apply(this, arguments);
};
QUnit.begin(function (args) {
args.totalTests = testCount;
});