Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Housing all of our assertions in one test case can quickly become
difficult to maintain, but luckily QUnit supports structuring blocks of
assertions more cleanly. This can be done using module(), a method that allows us to easily
group tests together. A typical approach to grouping might be keeping
multiple tests for a specific method as part of the same group
(module).
module('Module One');test('first test',function(){});test('another test',function(){});module('Module Two');test('second test',function(){});test('another test',function(){});module('Module Three');test('third test',function(){});test('another test',function