[Build] Fix GenericSearchProvider spec
...by delegating to window.setTimeout, such that spec as-written behaves correctly.
This commit is contained in:
@@ -81,6 +81,10 @@ define([
|
|||||||
|
|
||||||
spyOn(GenericSearchProvider.prototype, 'scheduleForIndexing');
|
spyOn(GenericSearchProvider.prototype, 'scheduleForIndexing');
|
||||||
|
|
||||||
|
$timeout.andCallFake(function (callback, millis) {
|
||||||
|
window.setTimeout(callback, millis);
|
||||||
|
});
|
||||||
|
|
||||||
provider = new GenericSearchProvider(
|
provider = new GenericSearchProvider(
|
||||||
$timeout,
|
$timeout,
|
||||||
$q,
|
$q,
|
||||||
|
|||||||
Reference in New Issue
Block a user