From a460013991416a26cb2c03a87dbcbf21c77249f5 Mon Sep 17 00:00:00 2001 From: Martin Raifer Date: Fri, 4 Aug 2023 17:30:53 +0200 Subject: [PATCH] fix test for fixed/updated nominatim API call --- test/spec/services/nominatim.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/spec/services/nominatim.js b/test/spec/services/nominatim.js index a348f4b3c..3fc284214 100644 --- a/test/spec/services/nominatim.js +++ b/test/spec/services/nominatim.js @@ -146,7 +146,11 @@ describe('iD.serviceNominatim', function() { nominatim.search('philadelphia', callback); window.setTimeout(function() { - expect(parseQueryString(fetchMock.calls()[0][0])).to.eql({format: 'json', limit: '10'}); + expect(parseQueryString(fetchMock.calls()[0][0])).to.eql({ + q: 'philadelphia', + format: 'json', + limit: '10' + }); expect(fetchMock.calls()[0][1].headers).to.eql({ 'Accept-Language': 'en' });