How do I properly test a custom icon function?
I have a function that returns a leaflet icon with some properties: addSimpleIcon( iconUrl, iconRetinaUrl: string = null, iconHeight: number = 20, iconWidth: number = 20 ): Icon { const icon: Icon = L.icon({ iconUrl, iconRetinaUrl, iconSize: [iconWidth, iconHeight], shadowSize: [0, 0], iconAnchor: [iconWidth / 2, iconHeight / 2], shadowAnchor: [0, 0], popupAnchor: [0, 0]… Read More How do I properly test a custom icon function?