Permalink
Browse files

Make sure that qunit tests don't fail even if have no assertions.

  • Loading branch information...
1 parent 8962677 commit 6f3f730fff0a1c7609aa79f4f37bb611bc44d3eb @reebalazs committed Jun 26, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/buster-qunit.js
View
@@ -18,6 +18,12 @@
function qunitTearDown() {
document.body.innerHTML = '';
+ if (buster.assertions.count === 0) {
+ // Must have one assert in buster, but
+ // this is not mandatory in qunit.
+ // Make sure test does not fail for this.
+ assert(true);
+ }
}
var testCase = {

0 comments on commit 6f3f730

Please sign in to comment.