Created
August 18, 2012 16:29
-
-
Save apeckham/3388159 to your computer and use it in GitHub Desktop.
jasmine testing that event.preventDefault was called
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var event = $.Event('tap'); | |
$fixtures.find('.random').trigger(event); | |
expect(event.isDefaultPrevented()).toBeTruthy(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Great! That helps me a lot!