From 0c6f4f0bdb070f9aeabdadf8c129f2cafb1a4b31 Mon Sep 17 00:00:00 2001 From: Stephan Meijer Date: Mon, 27 Apr 2020 17:37:03 +0200 Subject: [PATCH] fix bug in test, provider is no longer optional --- src/__tests__/SearchControl.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/__tests__/SearchControl.spec.js b/src/__tests__/SearchControl.spec.js index 61601557..f4d108b0 100644 --- a/src/__tests__/SearchControl.spec.js +++ b/src/__tests__/SearchControl.spec.js @@ -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' });