This commit is contained in:
zhongjin
2020-06-15 12:07:54 +08:00
parent 610ed21a90
commit a96ef233c9
444 changed files with 0 additions and 0 deletions
@@ -0,0 +1,15 @@
describe("Geometry", function() {
it("isPoint should return true when is a point", function() {
var geojsonFeature = {
"type": "Point",
"coordinates": [-104.99404, 39.75621]
};
var g = new cdb.geo.Geometry({
geojson: geojsonFeature
});
expect(g.isPoint()).toEqual(true);
g.set('geojson', {type: 'Polygon'});
expect(g.isPoint()).toEqual(false);
});
});