Skip to content

Commit

Permalink
Added direction creation test
Browse files Browse the repository at this point in the history
  • Loading branch information
aashish24 committed Mar 15, 2017
1 parent a72da03 commit f0e9b64
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/cases/choroplethFeature.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,16 @@ describe('geo.choroplethFeature', function () {
restoreVGLRenderer();
});

it('direct creation', function () {
mockVGLRenderer();
var map, layer, choropleth;
map = create_map();
layer = map.createLayer('feature', {renderer: 'vgl'});
choropleth = geo.choroplethFeature({layer: layer});
expect(choropleth instanceof geo.choroplethFeature).toBe(true);
restoreVGLRenderer();
});

it('multipolygon', function () {
mockVGLRenderer();
var map, layer, choropleth, scalarData = [
Expand Down

0 comments on commit f0e9b64

Please sign in to comment.