2
0
mirror of https://github.com/devbridge/jQuery-Autocomplete.git synced 2024-11-14 01:04:06 +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'); var event = $.Event('keydown');
event.which = 9; // the tab keycode event.which = 9; // the tab keycode
spyOn(event, 'stopImmediatePropagation');
spyOn(event, 'preventDefault');
spyOn(autocomplete, 'suggest'); spyOn(autocomplete, 'suggest');
expect(autocomplete.visible).toBe(true); expect(autocomplete.visible).toBe(true);
@ -505,8 +503,6 @@ describe('Autocomplete', function () {
$(input).trigger(event); $(input).trigger(event);
expect(event.stopImmediatePropagation).toHaveBeenCalled();
expect(event.preventDefault).toHaveBeenCalled();
expect(autocomplete.suggest).not.toHaveBeenCalled(); expect(autocomplete.suggest).not.toHaveBeenCalled();
}); });