From 5783d37185b9f49573e8ec1892dc9c2d6ae3bf0f Mon Sep 17 00:00:00 2001 From: Bartek Fabiszewski Date: Tue, 31 Aug 2021 20:22:31 +0200 Subject: [PATCH] Fix undefined method in tests --- js/src/mapapi/api_gmaps.js | 3 +++ js/src/mapapi/api_openlayers.js | 3 +++ 2 files changed, 6 insertions(+) diff --git a/js/src/mapapi/api_gmaps.js b/js/src/mapapi/api_gmaps.js index 3b0a059..df5c700 100644 --- a/js/src/mapapi/api_gmaps.js +++ b/js/src/mapapi/api_gmaps.js @@ -443,6 +443,9 @@ export default class GoogleMapsApi { } return null; } + + // eslint-disable-next-line class-methods-use-this + saveState() {/* empty */} } /** @type {boolean} */ diff --git a/js/src/mapapi/api_openlayers.js b/js/src/mapapi/api_openlayers.js index 7d1ad43..56cb3bd 100644 --- a/js/src/mapapi/api_openlayers.js +++ b/js/src/mapapi/api_openlayers.js @@ -777,6 +777,9 @@ export default class OpenLayersApi { } return null; } + + // eslint-disable-next-line class-methods-use-this + saveState() {/* empty */} } /** @type {number} */ OpenLayersApi.ZOOM_MAX = 20;