Skip to content

Commit

Permalink
Merge pull request #103 from IGNF/maj_tests
Browse files Browse the repository at this point in the history
maj tests
  • Loading branch information
vinsag authored Apr 16, 2024
2 parents cb1ca2b + 72d255e commit af015cc
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
6 changes: 4 additions & 2 deletions test/controllers/cadastre/commune.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,15 @@ describe('Testing /api/cadastre/commune', function() {
"nom_com": "Andance",
"code_dep": "07",
"code_insee": "07009",
"bbox": [
});
expect(feature.bbox).to.eql(
[
4.78197598,
45.20282918,
4.81150389,
45.26006379
]
});
);
})
.end(done);
});
Expand Down
19 changes: 9 additions & 10 deletions test/controllers/cadastre/division.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,15 @@ const expect = require('expect.js');
const app = require('../../../app');

const EXPECTED_PROPERTIES = [
"bbox",
"code_arr",
"code_com",
"code_dep",
"code_insee",
"com_abs",
"echelle",
"edition",
"feuille",
"nom_com",
"code_arr",
"code_com",
"code_dep",
"code_insee",
"com_abs",
"echelle",
"edition",
"feuille",
"nom_com",
"section"
];

Expand Down
4 changes: 3 additions & 1 deletion test/controllers/cadastre/localisant.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,11 @@ describe('Testing /api/cadastre/localisant', function() {
com_abs: '000',
code_arr: '000',
idu: "55001000ZK0141",
bbox:[5.50374285,48.52731102,5.50374285,48.52731102],
code_insee: '55001'
});
expect(feature.bbox).to.eql(
[5.50374285,48.52731102,5.50374285,48.52731102]
)
})
.end(done);
});
Expand Down

0 comments on commit af015cc

Please sign in to comment.