mirror of
https://github.com/jlengrand/leaflet-geosearch.git
synced 2026-03-10 08:31:26 +00:00
fix bug in test, provider is no longer optional
This commit is contained in:
@@ -78,7 +78,7 @@ test('Change view on result', () => {
|
||||
|
||||
map.setView = jest.fn();
|
||||
|
||||
const control = new SearchControl({}).addTo(map);
|
||||
const control = new SearchControl({ provider: jest.fn() }).addTo(map);
|
||||
|
||||
control.showResult({ x: 50, y: 0 }, { query: 'none' });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user