Skip to content

Commit 9a4340f

Browse files
authored
Update building.test.js
1 parent 7e36c57 commit 9a4340f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/building.test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,10 @@ test('Test downloading type=building with multipolygon outline and multiple inne
309309
const building = new Building('42', innerData);
310310
expect(building.id).toBe('42');
311311
expect(building.outerElement.shape.holes.length).toBe(1);
312+
const urlBase = 'https://api.openstreetmap.org/api/0.6/';
313+
expect(global.fetch.mock.calls[0][0]).toBe(urlBase + 'relation/42/full');
314+
expect(global.fetch.mock.calls[1][0]).toBe(urlBase + 'relation/40/full');
315+
expect(global.fetch.mock.calls[2][0]).toBe(urlBase + 'map?bbox=30.4980057,59.9380365,30.4993839,59.9385087');
312316
});
313317

314318
window.printError = printError;

0 commit comments

Comments
 (0)