From 605b9483577f95d9342a904ca9c81372b6639c9c Mon Sep 17 00:00:00 2001 From: MBorne Date: Thu, 6 Oct 2022 14:09:18 +0200 Subject: [PATCH] =?UTF-8?q?test=20gpu=20-=20mise=20=C3=A0=20jour=20suite?= =?UTF-8?q?=20au=20passage=20de=20Rennes=20en=20PLUi=20(refs=20#64)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 ++ test/controllers/gpu/document.js | 5 ++--- test/controllers/gpu/zone-urba.js | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index f49158b..8e7bc49 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +.vscode/ + data/ node_modules/ coverage/ diff --git a/test/controllers/gpu/document.js b/test/controllers/gpu/document.js index 7e41bde..3434042 100644 --- a/test/controllers/gpu/document.js +++ b/test/controllers/gpu/document.js @@ -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) { @@ -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); ; diff --git a/test/controllers/gpu/zone-urba.js b/test/controllers/gpu/zone-urba.js index 7a24737..54dd201 100644 --- a/test/controllers/gpu/zone-urba.js +++ b/test/controllers/gpu/zone-urba.js @@ -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); ;