mirror of
https://github.com/nasa/openmct.git
synced 2025-02-20 09:26:45 +00:00
[Build] Fix GenericSearchProvider spec
...by delegating to window.setTimeout, such that spec as-written behaves correctly.
This commit is contained in:
parent
4f85616632
commit
2be6b3f051
@ -81,6 +81,10 @@ define([
|
||||
|
||||
spyOn(GenericSearchProvider.prototype, 'scheduleForIndexing');
|
||||
|
||||
$timeout.andCallFake(function (callback, millis) {
|
||||
window.setTimeout(callback, millis);
|
||||
});
|
||||
|
||||
provider = new GenericSearchProvider(
|
||||
$timeout,
|
||||
$q,
|
||||
|
Loading…
x
Reference in New Issue
Block a user