[Build] Fix GenericSearchProvider spec

...by delegating  to window.setTimeout, such
that spec as-written behaves correctly.
This commit is contained in:
Victor Woeltjen 2016-03-04 11:48:20 -08:00
parent 4f85616632
commit 2be6b3f051

View File

@ -81,6 +81,10 @@ define([
spyOn(GenericSearchProvider.prototype, 'scheduleForIndexing');
$timeout.andCallFake(function (callback, millis) {
window.setTimeout(callback, millis);
});
provider = new GenericSearchProvider(
$timeout,
$q,