Skip to content

Commit

Permalink
Fix for QUnit.moduleDone, get rid of initial bogus log. Fixes #33
Browse files Browse the repository at this point in the history
  • Loading branch information
jzaefferer committed Nov 3, 2010
1 parent c2cde34 commit d43757f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qunit/qunit.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ var QUnit = {
config.currentModule = name;

synchronize(function() {
if ( config.currentModule ) {
if ( config.previousModule ) {
QUnit.moduleDone( config.currentModule, config.moduleStats.bad, config.moduleStats.all );
}

config.previousModule = config.currentModule;
config.currentModule = name;
config.moduleTestEnvironment = testEnvironment;
config.moduleStats = { all: 0, bad: 0 };
Expand Down

0 comments on commit d43757f

Please sign in to comment.