We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 319b988 commit 44f53c5Copy full SHA for 44f53c5
test/gabledroofbug.test.js
@@ -170,6 +170,10 @@ test('Test downloading type=building with multipolygon outline and multiple inne
170
const building = new Building('42', innerData);
171
expect(building.id).toBe('42');
172
expect(building.outerElement.shape.holes.length).toBe(1);
173
+ expect(global.fetch).toHaveBeenCalledTimes(3);
174
+ expect(global.fetch.mock.calls[0][0]).toBe('/relation/42/full');
175
+ expect(global.fetch.mock.calls[1][0]).toBe('/relation/40/full');
176
+ expect(global.fetch.mock.calls[2][0]).toBe('/map');
177
});
178
179
beforeEach(() => {
0 commit comments