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.
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.