Skip to content

Instantly share code, notes, and snippets.

@seanbollin
Created April 22, 2014 19:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seanbollin/10e1a409542192aa53d7 to your computer and use it in GitHub Desktop.
Save seanbollin/10e1a409542192aa53d7 to your computer and use it in GitHub Desktop.
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