Skip to content

Commit 176b72a

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

File tree

1 file changed

+34
-1
lines changed

1 file changed

+34
-1
lines changed

test/diagnose.test.js

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,40 @@ import fetchMock from 'jest-fetch-mock';
1616
fetchMock.enableMocks();
1717

1818
// Step 1: get the full data for the buiding from the API
19-
const initialData = `
19+
const initialData = `<osm version="0.6" generator="openstreetmap-cgimap 2.1.0 (1885079 spike-08.openstreetmap.org)" copyright="OpenStreetMap and contributors" attribution="http://www.openstreetmap.org/copyright" license="http://opendatacommons.org/licenses/odbl/1-0/">
20+
<node id="13116569240" visible="true" version="1" changeset="171414308" timestamp="2025-09-03T15:51:12Z" user="zuzak" uid="237340" lat="55.8551787" lon="-4.3313915"/>
21+
<node id="13116569241" visible="true" version="1" changeset="171414308" timestamp="2025-09-03T15:51:12Z" user="zuzak" uid="237340" lat="55.8550939" lon="-4.3314236"/>
22+
<node id="13116569242" visible="true" version="1" changeset="171414308" timestamp="2025-09-03T15:51:12Z" user="zuzak" uid="237340" lat="55.8551585" lon="-4.3312202"/>
23+
<node id="13116569244" visible="true" version="1" changeset="171414308" timestamp="2025-09-03T15:51:12Z" user="zuzak" uid="237340" lat="55.8550736" lon="-4.3312518"/>
24+
<node id="13116569245" visible="true" version="1" changeset="171414308" timestamp="2025-09-03T15:51:12Z" user="zuzak" uid="237340" lat="55.8551741" lon="-4.3313520"/>
25+
<node id="13116569248" visible="true" version="1" changeset="171414308" timestamp="2025-09-03T15:51:12Z" user="zuzak" uid="237340" lat="55.8551621" lon="-4.3312507"/>
26+
<way id="1426868383" visible="true" version="2" changeset="175381161" timestamp="2025-12-02T00:38:17Z" user="philipcullen" uid="8857">
27+
<nd ref="13116569242"/>
28+
<nd ref="13116569248"/>
29+
<nd ref="13116569245"/>
30+
<nd ref="13116569240"/>
31+
<nd ref="13116569241"/>
32+
<nd ref="13116569244"/>
33+
<nd ref="13116569242"/>
34+
<tag k="addr:city" v="Glasgow"/>
35+
<tag k="addr:country" v="GB"/>
36+
<tag k="addr:housenumber" v="183"/>
37+
<tag k="addr:postcode" v="G51 4DJ"/>
38+
<tag k="addr:street" v="Shieldhall Road"/>
39+
<tag k="amenity" v="fast_food"/>
40+
<tag k="brand" v="Greggs"/>
41+
<tag k="brand:wikidata" v="Q3403981"/>
42+
<tag k="brand:wikipedia" v="en:Greggs"/>
43+
<tag k="building" v="yes"/>
44+
<tag k="building:levels" v="2"/>
45+
<tag k="contact:website" v="https://www.greggs.co.uk/shop-finder?shop-code=1884"/>
46+
<tag k="cuisine" v="sandwich;bakery"/>
47+
<tag k="fhrs:id" v="47551"/>
48+
<tag k="name" v="Greggs"/>
49+
<tag k="ref:GB:uprn" v="906700381676"/>
50+
<tag k="takeaway" v="yes"/>
51+
</way>
52+
</osm>
2053
`;
2154

2255
// Step 2: get the bounding box data for the buiding from the API

0 commit comments

Comments
 (0)