2022-04-11 16:29:07 +08:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
|
|
|
exports[`<ZoomButtons /> renders buttons 1`] = `
|
|
|
|
<ZoomButtons
|
|
|
|
map={
|
|
|
|
MockMap {
|
2022-11-04 18:48:08 +08:00
|
|
|
"_events": {},
|
2022-04-11 16:29:07 +08:00
|
|
|
"_eventsCount": 0,
|
|
|
|
"_maxListeners": undefined,
|
|
|
|
"addControl": [MockFunction],
|
2022-04-19 19:35:39 +08:00
|
|
|
"fitBounds": [MockFunction],
|
2022-04-11 16:29:07 +08:00
|
|
|
"removeControl": [MockFunction],
|
2022-04-12 00:40:06 +08:00
|
|
|
"setCenter": [MockFunction],
|
|
|
|
"setStyle": [MockFunction],
|
2022-04-11 16:29:07 +08:00
|
|
|
"zoomIn": [MockFunction],
|
|
|
|
"zoomOut": [MockFunction],
|
|
|
|
Symbol(kCapture): false,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
className="mx_ZoomButtons"
|
|
|
|
>
|
|
|
|
<AccessibleButton
|
|
|
|
className="mx_ZoomButtons_button"
|
|
|
|
data-test-id="map-zoom-in-button"
|
|
|
|
element="div"
|
|
|
|
onClick={[Function]}
|
|
|
|
role="button"
|
|
|
|
tabIndex={0}
|
|
|
|
title="Zoom in"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
className="mx_AccessibleButton mx_ZoomButtons_button"
|
|
|
|
data-test-id="map-zoom-in-button"
|
|
|
|
onClick={[Function]}
|
|
|
|
onKeyDown={[Function]}
|
|
|
|
onKeyUp={[Function]}
|
|
|
|
role="button"
|
|
|
|
tabIndex={0}
|
|
|
|
title="Zoom in"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
className="mx_ZoomButtons_icon"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</AccessibleButton>
|
|
|
|
<AccessibleButton
|
|
|
|
className="mx_ZoomButtons_button"
|
|
|
|
data-test-id="map-zoom-out-button"
|
|
|
|
element="div"
|
|
|
|
onClick={[Function]}
|
|
|
|
role="button"
|
|
|
|
tabIndex={0}
|
|
|
|
title="Zoom out"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
className="mx_AccessibleButton mx_ZoomButtons_button"
|
|
|
|
data-test-id="map-zoom-out-button"
|
|
|
|
onClick={[Function]}
|
|
|
|
onKeyDown={[Function]}
|
|
|
|
onKeyUp={[Function]}
|
|
|
|
role="button"
|
|
|
|
tabIndex={0}
|
|
|
|
title="Zoom out"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
className="mx_ZoomButtons_icon"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</AccessibleButton>
|
|
|
|
</div>
|
|
|
|
</ZoomButtons>
|
|
|
|
`;
|