Permalink
Browse files

Add test for parcel.type

  • Loading branch information...
hampelm
hampelm committed Nov 8, 2012
1 parent 1afa984 commit 33b80ecfe1e22c6518ca8c0142510edfe002ffe2
Showing with 2 additions and 1 deletion.
  1. +2 −1 test/test.parcels.js
View
@@ -20,6 +20,7 @@ function shouldBeParcel(item) {
item.centroid.coordinates.should.have.lengthOf(2);
item.should.have.property('parcelId');
item.should.have.property('polygon');
+ item.should.have.property('type');
item.polygon.should.have.property('type');
item.polygon.type.should.equal('MultiPolygon');
item.polygon.should.have.property('coordinates');
@@ -129,7 +130,7 @@ suite('Parcels', function () {
}, function (error, response, body) {
should.not.exist(error);
response.statusCode.should.equal(200);
- response.should.be.json
+ response.should.be.json;
var parsed = JSON.parse(body);
parsed.should.be.an.instanceOf(Array);

0 comments on commit 33b80ec

Please sign in to comment.