Skip to content

Commit

Permalink
fix another bool comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickkettner committed Feb 26, 2015
1 parent 75ff7b8 commit 8f488e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/browser/integration/classes.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ describe('classes', function() {
expect(!!Modernizr[name[0]][name[1]]).to.equal(result);
}
} else {
expect(!!Modernizr[name]).to.equal(result);
var test = Modernizr[name];
var modernizrResult = test instanceof Boolean ? test.valueOf() : !!test;
expect(modernizrResult).to.equal(result);
}
});
})
Expand Down

0 comments on commit 8f488e9

Please sign in to comment.