Skip to content

Commit f4de36e

Browse files
committed
fix multipolygon case
1 parent 90ee3da commit f4de36e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/jasmine/tests/choroplethmap_test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ describe('Test choroplethmap convert:', function() {
498498
var coordsIn = [
499499
[
500500
// this one has the bigger area
501-
[[30, 20], [45, 40], [10, 40], [30, 20]]
501+
[[30, 20], [47, 40], [10, 33], [30, 20]]
502502
],
503503
[
504504
[[15, 5], [40, 10], [10, 20], [5, 10], [15, 5]]
@@ -511,7 +511,7 @@ describe('Test choroplethmap convert:', function() {
511511
var opts = convertModule.convert(calcTrace);
512512

513513
expect(opts.geojson.features[0].geometry.coordinates).toBe(coordsIn);
514-
expect(calcTrace[0].ct).toEqual([28.75, 30]);
514+
expect(calcTrace[0].ct).toEqual([29, 31]);
515515
});
516516
});
517517

0 commit comments

Comments
 (0)