From 092b5152d4b8a40aaf64ca728ddf8645ebade544 Mon Sep 17 00:00:00 2001 From: Taro Matsuzawa Date: Mon, 20 May 2024 05:49:17 +0900 Subject: [PATCH] #3103 fix test --- src/ui/control/geolocate_control.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/control/geolocate_control.test.ts b/src/ui/control/geolocate_control.test.ts index eddc6700a8..b91a5ac8aa 100644 --- a/src/ui/control/geolocate_control.test.ts +++ b/src/ui/control/geolocate_control.test.ts @@ -590,6 +590,6 @@ describe('GeolocateControl with no options', () => { }); map.addControl(geolocate); await sleep(0); - expect(geolocate._geolocateButton.style.display).toBe('none'); + expect(geolocate._geolocateButton.classList.contains('maplibregl-ctrl-geolocate-hidden')).toBeTruthy(); }); });