diff --git a/src/services/__tests__/osmApi.fixture.ts b/src/services/__tests__/osmApi.fixture.ts index 77dc712d1..ec6b6b98e 100644 --- a/src/services/__tests__/osmApi.fixture.ts +++ b/src/services/__tests__/osmApi.fixture.ts @@ -104,7 +104,7 @@ export const RELATION = { export const RELATION_FEATURE = { type: 'Feature', - center: [15, 51], + center: [14, 50], members: [ { ref: 8166328, @@ -134,5 +134,7 @@ export const RELATION_FEATURE = { amenity: 'university', type: 'multipolygon', }, - imageDefs: [{ type: 'center', service: 'mapillary', center: [15, 51] }], + deleted: undefined, + geometry: undefined, + imageDefs: [{ type: 'center', service: 'mapillary', center: [14, 50] }], }; diff --git a/src/services/__tests__/osmApi.test.ts b/src/services/__tests__/osmApi.test.ts index 8edd899d6..6668b37ac 100644 --- a/src/services/__tests__/osmApi.test.ts +++ b/src/services/__tests__/osmApi.test.ts @@ -67,16 +67,12 @@ describe('fetchFeature', () => { expect(feature).toEqual(WAY_FEATURE); }); - const OVERPASS_GEOM_RESPONSE = { - elements: [{ geometry: { coordinates: [15, 51] } }], - }; - it('should work for relation', async () => { const fetchJson = jest .spyOn(fetch, 'fetchJson') .mockImplementation((url) => Promise.resolve( - url.match(/overpass/) ? OVERPASS_GEOM_RESPONSE : RELATION, + url.match(/overpass/) ? OVERPASS_CENTER_RESPONSE : RELATION, ), );