Skip to content

Commit d32b302

Browse files
authored
Update gabledroofbug.test.js
1 parent a9e01a9 commit d32b302

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test/gabledroofbug.test.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,23 @@ const data = `
3131
</way>
3232
</osm>`;
3333

34+
let accessCount = 0;
35+
const fetch = function (input) {
36+
accessCoint++;
37+
if (accessCount === 1) {
38+
return data;
39+
}
40+
throw new Error(input);
41+
}
42+
3443
beforeEach(() => {
3544
errors = [];
3645
});
3746

47+
test ('', () => {
48+
Building.downloadDataAroundBuilding('way', '31361386');
49+
});
50+
3851
test('Constructor', () => {
3952
const bldg = new Building('31361386', data);
4053
expect(bldg.parts.length).toBe(1);

0 commit comments

Comments
 (0)