-
-
Save seanbollin/10e1a409542192aa53d7 to your computer and use it in GitHub Desktop.
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
it('has a drop down with FROM when you type F', function() { | |
var e = $.Event("keydown"); | |
e.which = 70; // # Some key code value | |
var textarea = element.find('textarea'); | |
$(textarea).trigger(e); | |
var e = $.Event("keyup"); | |
e.which = 70; // # Some key code value | |
$(textarea).trigger(e); | |
console.log(element.find('ul')); | |
expect(element.find('ul.dropdown-menu li').val()).toEqual('FROM'); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment