Fix JavaScript tests (#824)
Fix JavaScript tests (#824)

When running "npm run test".

Another follow-up to Leaflet 1.0 upgrade.
tobias74/graphhopper,hguerrero/graphhopper,seeebiii/graphhopper,boldtrn/graphhopper,ratrun/graphhopper,boldtrn/graphhopper,hguerrero/graphhopper,ratrun/graphhopper,tobias74/graphhopper,komoot/graphhopper,seeebiii/graphhopper,prembasumatary/graphhopper,routexl/graphhopper,komoot/graphhopper,ammagamma/graphhopper,ammagamma/graphhopper,fbonzon/graphhopper,don-philipe/graphhopper,komoot/graphhopper,PGWelch/graphhopper,seeebiii/graphhopper,graphhopper/graphhopper,tobias74/graphhopper,prembasumatary/graphhopper,PGWelch/graphhopper,routexl/graphhopper,prembasumatary/graphhopper,PGWelch/graphhopper,fbonzon/graphhopper,joh12041/graphhopper,routexl/graphhopper,ammagamma/graphhopper,ratrun/graphhopper,fbonzon/graphhopper,ammagamma/graphhopper,devemux86/graphhopper,seeebiii/graphhopper,graphhopper/graphhopper,boldtrn/graphhopper,don-philipe/graphhopper,joh12041/graphhopper,hguerrero/graphhopper,fbonzon/graphhopper,devemux86/graphhopper,hguerrero/graphhopper,don-philipe/graphhopper,joh12041/graphhopper,ratrun/graphhopper,devemux86/graphhopper,komoot/graphhopper,routexl/graphhopper,PGWelch/graphhopper,joh12041/graphhopper,graphhopper/graphhopper,don-philipe/graphhopper,tobias74/graphhopper,devemux86/graphhopper,graphhopper/graphhopper,prembasumatary/graphhopper,boldtrn/graphhopper