Skip to content

Commit 6dcdb7d

Browse files
authored
Update diagnose.test.js
1 parent e539614 commit 6dcdb7d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/diagnose.test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ test('Diagnose Skillion Issue', async() => {
2929
[initialData], // /way/1426868383/full
3030
[mapData], // /map call
3131
);
32-
let way_id = '1426868383';
33-
const innerData = await Building.downloadDataAroundBuilding('way', way_id);
34-
const building = new Building(way_id, innerData);
35-
expect(building.id).toBe(way_id);
32+
let wayId = '1426868383';
33+
const innerData = await Building.downloadDataAroundBuilding('way', wayId);
34+
const building = new Building(wayId, innerData);
35+
expect(building.id).toBe(wayId);
3636
const urlBase = 'https://api.openstreetmap.org/api/0.6/';
37-
expect(global.fetch.mock.calls[0][0]).toBe(urlBase + 'way/' + way_id + '/full');
37+
expect(global.fetch.mock.calls[0][0]).toBe(urlBase + 'way/' + wayId + '/full');
3838
expect(global.fetch.mock.calls[1][0]).toBe(urlBase + 'map?bbox=125.7416897,39.0269534,125.7420811,39.0272423');
3939
// get building part
4040
const parts = building.parts;

0 commit comments

Comments
 (0)