Sunday, February 19, 2012

test to see if a class exists in a jasmine-jquery widget

https://github.com/velesin/jasmine-jquery offers that one may use this trick to see if an element has a class or not:

expect($('#foo')).not.toHaveClass('hide');

No comments:

Post a Comment