RequireJs loading modules - Qunit
I am pretty new to RequireJS, and having trouble in writing QUnit to a source code which has logic to load modules dynamically using requireJS. Below is the source code: factory/Factory.js * getPage: function (callback) { //doSomething here require(['page/something'], function() { callback(); }) } The module 'page/something' is never loaded while running QUnit, and callback is never invoked. Is there anything I'm missing here? Appreciate your response. * *QUnit factory/FactoryTests.js* define(['underscore', 'factory/Factory'], function (_, Factory) { module("Factory", { setup:function () { },