Created by: jorgenfb
.hasClass() just checks if the classes appear in the exact order you specify, without any other classes inbetween. Using .is() ensures that you get a positive response even if classes are shuffled and/or mixed with other classes.
This seems to be a problem with some of the unit test for bootstrap-tooltip that was testing for: .hasClass("fade in") when the actual class would have been "fade top in" when the tooltip module failed. This would give the impression that the test passed when it actually failed.