From 138b012c4bbabe56417e8cdcfce743f15b82beaa Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Thu, 10 Jul 2014 10:48:58 +0200 Subject: [PATCH] Fixed countrycode spec --- test/spec/countrycode.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/spec/countrycode.js b/test/spec/countrycode.js index 0382a1d93..1b519d3f4 100644 --- a/test/spec/countrycode.js +++ b/test/spec/countrycode.js @@ -20,7 +20,7 @@ describe("iD.countryCode", function() { var callback = sinon.spy(); countryCode.search([16, 48], callback); - server.respondWith("GET", "http://nominatim.openstreetmap.org/reverse?addressdetails=1&format=json&lat=48&lon=16", + server.respondWith("GET", "https://nominatim.openstreetmap.org/reverse?addressdetails=1&format=json&lat=48&lon=16", [200, { "Content-Type": "application/json" }, '{"address":{"country_code":"at"}}']); server.respond(); @@ -33,7 +33,7 @@ describe("iD.countryCode", function() { var callback = sinon.spy(); countryCode.search([16, 48], callback); - server.respondWith("GET", "http://nominatim.openstreetmap.org/reverse?addressdetails=1&format=json&lat=48&lon=16", + server.respondWith("GET", "https://nominatim.openstreetmap.org/reverse?addressdetails=1&format=json&lat=48&lon=16", [200, { "Content-Type": "application/json" }, '{"address":{"country_code":"at"}}']); server.respond(); @@ -47,7 +47,7 @@ describe("iD.countryCode", function() { countryCode.search([17, 49], callback); - server.respondWith("GET", "http://nominatim.openstreetmap.org/reverse?addressdetails=1&format=json&lat=49&lon=17", + server.respondWith("GET", "https://nominatim.openstreetmap.org/reverse?addressdetails=1&format=json&lat=49&lon=17", [200, { "Content-Type": "application/json" }, '{"address":{"country_code":"cz"}}']); server.respond(); @@ -60,7 +60,7 @@ describe("iD.countryCode", function() { var callback = sinon.spy(); countryCode.search([16, 48], callback); - server.respondWith("GET", "http://nominatim.openstreetmap.org/reverse?addressdetails=1&format=json&lat=48&lon=16", + server.respondWith("GET", "https://nominatim.openstreetmap.org/reverse?addressdetails=1&format=json&lat=48&lon=16", [200, { "Content-Type": "application/json" }, '{"address":{"country_code":"at"}}']); server.respond(); @@ -74,7 +74,7 @@ describe("iD.countryCode", function() { countryCode.search([16.01, 48.01], callback); - server.respondWith("GET", "http://nominatim.openstreetmap.org/reverse?addressdetails=1&format=json&lat=48.01&lon=16.01", + server.respondWith("GET", "https://nominatim.openstreetmap.org/reverse?addressdetails=1&format=json&lat=48.01&lon=16.01", [200, { "Content-Type": "application/json" }, '{"address":{"country_code":"cz"}}']); server.respond(); @@ -85,7 +85,7 @@ describe("iD.countryCode", function() { var callback = sinon.spy(); countryCode.search([1000, 1000], callback); - server.respondWith("GET", "http://nominatim.openstreetmap.org/reverse?addressdetails=1&format=json&lat=1000&lon=1000", + server.respondWith("GET", "https://nominatim.openstreetmap.org/reverse?addressdetails=1&format=json&lat=1000&lon=1000", [200, { "Content-Type": "application/json" }, '{"error":"Unable to geocode"}']); server.respond();