Skip to content

Commit

Permalink
test gpu - mise à jour suite au passage de Rennes en PLUi (refs #64)
Browse files Browse the repository at this point in the history
  • Loading branch information
mborne committed Oct 6, 2022
1 parent af4787f commit 605b948
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.vscode/

data/
node_modules/
coverage/
Expand Down
5 changes: 2 additions & 3 deletions test/controllers/gpu/document.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ const expect = require('expect.js');
const app = require('../../../app');

describe('/api/gpu/document', function() {


describe('with point at [1.654399,48.112235] (Rennes)', function() {
it('should reply a FeatureCollection containing a valid Feature', function(done) {
Expand All @@ -16,8 +15,8 @@ describe('/api/gpu/document', function() {
expect(res.body.features.length).to.eql(1);
const feature = res.body.features[0];
expect(feature.geometry.type).to.eql('MultiPolygon');
expect(feature.properties.du_type).to.eql('PLU');
expect(feature.properties.partition).to.eql('DU_28190');
expect(feature.properties.du_type).to.eql('PLUi');
expect(feature.properties.partition).to.eql('DU_200070159');
})
.end(done);
;
Expand Down
2 changes: 1 addition & 1 deletion test/controllers/gpu/zone-urba.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('/api/gpu/zone-urba', function() {
expect(res.body.features.length).to.eql(1);
const feature = res.body.features[0];
expect(feature.geometry.type).to.eql('MultiPolygon');
expect(feature.properties.libelong).to.eql('Zone agricole');
expect(feature.properties.libelle).to.eql('A');
})
.end(done);
;
Expand Down

0 comments on commit 605b948

Please sign in to comment.