2
0
mirror of https://github.com/devbridge/jQuery-Autocomplete.git synced 2024-11-12 16:26:37 +00:00

Update spec.

This commit is contained in:
Tomas Kirda 2014-11-26 15:51:39 -06:00
parent f2e13bdb5b
commit dfd7f44509

View File

@ -495,8 +495,6 @@ describe('Autocomplete', function () {
var event = $.Event('keydown');
event.which = 9; // the tab keycode
spyOn(event, 'stopImmediatePropagation');
spyOn(event, 'preventDefault');
spyOn(autocomplete, 'suggest');
expect(autocomplete.visible).toBe(true);
@ -505,8 +503,6 @@ describe('Autocomplete', function () {
$(input).trigger(event);
expect(event.stopImmediatePropagation).toHaveBeenCalled();
expect(event.preventDefault).toHaveBeenCalled();
expect(autocomplete.suggest).not.toHaveBeenCalled();
});