arthur-e / Wicket

A modest library for moving between Well-Known Text (WKT) and various framework geometries
https://arthur-e.github.io/Wicket/
Other
586 stars 226 forks source link

fixes gmaps tests #77

Closed ffflabs closed 8 years ago

ffflabs commented 8 years ago

The sensor parameter is deprecated and throws a warning when including the google maps library. This PR removes it.

Also, at some point in the recent releases, when google maps api instances an object it is assigned an internal id, which means another instance with the same coordinates or path won't satisfy Jasmine's .toEqual method.

In this PR, the tests are modified to cast LatLng objects as string, and map rings and linestrings as array of stringified LatLng objects. This way only the position is compared whereas the inner id is simply ignored.

arthur-e commented 8 years ago

Thanks!