fix bug in test, provider is no longer optional

This commit is contained in:
Stephan Meijer
2020-04-27 17:37:03 +02:00
parent 45231fe5b0
commit 0c6f4f0bdb

View File

@@ -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' });