Skip to content

Commit 44f53c5

Browse files
authored
Update gabledroofbug.test.js
1 parent 319b988 commit 44f53c5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/gabledroofbug.test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,10 @@ test('Test downloading type=building with multipolygon outline and multiple inne
170170
const building = new Building('42', innerData);
171171
expect(building.id).toBe('42');
172172
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');
173177
});
174178

175179
beforeEach(() => {

0 commit comments

Comments
 (0)