Skip to content

Commit

Permalink
fix(Tests): corrige tests unitaires sur defaultUrlServices
Browse files Browse the repository at this point in the history
  • Loading branch information
elias75015 committed Mar 18, 2024
1 parent 8cd9d3f commit e23cbe9
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions test/spec/test_Services_DefaultUrlServices.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@ describe("-- Test DefaultUrlService --", function () {

it("DefaultUrlService", function () {

expect(DefaultUrlService.Alti.url(key)["elevation-json"]).to.be.equal("https://wxs.ign.fr/calcul/alti/rest/elevation.json");
expect(DefaultUrlService.Alti.url(key)["elevation-xml"]).to.be.equal("https://wxs.ign.fr/calcul/alti/rest/elevation.xml");
expect(DefaultUrlService.Alti.url(key)["profil-json"]).to.be.equal("https://wxs.ign.fr/calcul/alti/rest/elevationLine.json");
expect(DefaultUrlService.Alti.url(key)["profil-xml"]).to.be.equal("https://wxs.ign.fr/calcul/alti/rest/elevationLine.xml");
expect(DefaultUrlService.ProcessIsoCurve.url(key)).to.be.equal("https://wxs.ign.fr/calcul/geoportail/isochrone/rest/1.0.0/isochrone");
expect(DefaultUrlService.AutoComplete.url(key)).to.be.equal("https://wxs.ign.fr/calcul/geoportail/geocodage/rest/0.1/completion" );
expect(DefaultUrlService.ReverseGeocode.url(key)).to.be.equal("https://wxs.ign.fr/calcul/geoportail/geocodage/rest/0.1/reverse");
expect(DefaultUrlService.Alti.newUrl(key)["elevation-json"]).to.be.equal("https://data.geopf.fr/altimetrie/1.0/calcul/alti/rest/elevation.json");
expect(DefaultUrlService.Alti.newUrl(key)["elevation-xml"]).to.be.equal("https://data.geopf.fr/altimetrie/1.0/calcul/alti/rest/elevation.xml");
expect(DefaultUrlService.Alti.newUrl(key)["profil-json"]).to.be.equal("https://data.geopf.fr/altimetrie/1.0/calcul/alti/rest/elevationLine.json");
expect(DefaultUrlService.Alti.newUrl(key)["profil-xml"]).to.be.equal("https://data.geopf.fr/altimetrie/1.0/calcul/alti/rest/elevationLine.xml");
expect(DefaultUrlService.ProcessIsoCurve.newUrl(key)).to.be.equal("https://data.geopf.fr/navigation/isochrone");
expect(DefaultUrlService.AutoComplete.newUrl(key)).to.be.equal("https://data.geopf.fr/geocodage/completion" );
expect(DefaultUrlService.ReverseGeocode.newUrl(key)).to.be.equal("https://data.geopf.fr/geocodage/reverse");
expect(DefaultUrlService.Config.url([key])).deep.to.be.equal(["https://raw.githubusercontent.com/IGNF/geoportal-configuration/new-url/dist/CLEConfig.json"]);
expect(DefaultUrlService.Config.url(keys)).deep.to.be.equal(["https://raw.githubusercontent.com/IGNF/geoportal-configuration/new-url/dist/CLE1Config.json","https://raw.githubusercontent.com/IGNF/geoportal-configuration/new-url/dist/CLE2Config.json"]);
expect(DefaultUrlService.Geocode.url(key)).to.be.equal("https://wxs.ign.fr/calcul/geoportail/geocodage/rest/0.1/search");
expect(DefaultUrlService.Route.url(key)).to.be.equal("https://wxs.ign.fr/calcul/geoportail/itineraire/rest/1.0.0/route");
expect(DefaultUrlService.Geocode.newUrl(key)).to.be.equal("https://data.geopf.fr/geocodage/search");
expect(DefaultUrlService.Route.newUrl(key)).to.be.equal("https://data.geopf.fr/navigation/itineraire");
});
});
});

0 comments on commit e23cbe9

Please sign in to comment.