这是应用程序的代码。所有其余的函数都是从init()
.
如何开始使用 qunit 测试代码,因为如果我直接调用 tests.js 文件中的函数,它会显示“ ReferenceError: init is not defined
”。
var SOUND;
(function ($, undefined) {
// some code here
// and has variables and functions defined which get called inside this and are all interdependent.
init = function () {
}
})(jQuery);