Skip to content

Commit b978c7a

Browse files
committed
fix single polygon case
1 parent d205bc9 commit b978c7a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/jasmine/tests/choroplethmap_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ describe('Test choroplethmap convert:', function() {
489489
var opts = convertModule.convert(calcTrace);
490490

491491
expect(opts.geojson.features[0].geometry.coordinates).toBe(coordsIn);
492-
expect(calcTrace[0].ct).toEqual([100.4, 0.4]);
492+
expect(calcTrace[0].ct).toEqual([100.5, 0.5]);
493493
});
494494

495495
it('should find correct centroid (multi-polygon case)', function() {

test/jasmine/tests/choroplethmapbox_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ describe('Test choroplethmapbox convert:', function() {
490490
var opts = convertModule.convert(calcTrace);
491491

492492
expect(opts.geojson.features[0].geometry.coordinates).toBe(coordsIn);
493-
expect(calcTrace[0].ct).toEqual([100.4, 0.4]);
493+
expect(calcTrace[0].ct).toEqual([100.5, 0.5]);
494494
});
495495

496496
it('should find correct centroid (multi-polygon case)', function() {

0 commit comments

Comments
 (0)