fix test for fixed/updated nominatim API call

This commit is contained in:
Martin Raifer
2023-08-04 17:30:53 +02:00
parent a2d3cf8f9a
commit a460013991
+5 -1
View File
@@ -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'
});