We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
plotly
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent ee7de47 commit a2eb6bbCopy full SHA for a2eb6bb
test/jasmine/tests/geo_test.js
@@ -380,6 +380,25 @@ describe('geojson / topojson utils', function() {
380
expect(out).toEqual(false);
381
});
382
383
+
384
+ describe('should distinguish between US and US Virgin Island', function() {
385
386
+ // N.B. Virgin Island don't appear at the 'world_110m' resolution
387
+ var topojsonName = 'world_50m';
388
+ var topojson = GeoAssets.topojson[topojsonName];
389
390
+ var shouldPass = [
391
+ 'Virgin Islands (U.S.)',
392
+ ' Virgin Islands (U.S.) '
393
+ ];
394
395
+ shouldPass.forEach(function(str) {
396
+ it('(case ' + str + ')', function() {
397
+ var out = _locationToFeature(topojson, str, 'country names');
398
+ expect(out.id).toEqual('VIR');
399
+ });
400
401
402
403
404
describe('Test geo interactions', function() {
0 commit comments