|
| 1 | +/** |
| 2 | + * @jest-environment jsdom |
| 3 | + */ |
| 4 | +import { BuildingPart } from '../src/buildingpart.js'; |
| 5 | +import { BuildingShapeUtils } from '../src/extras/BuildingShapeUtils.js'; |
| 6 | +import { TextEncoder } from 'node:util'; |
| 7 | + |
| 8 | +const data = ` |
| 9 | +<osm version="0.6" generator="openstreetmap-cgimap 2.0.1 (2514279 spike-07.openstreetmap.org)" copyright="OpenStreetMap and contributors" attribution="http://www.openstreetmap.org/copyright" license="http://opendatacommons.org/licenses/odbl/1-0/"> |
| 10 | +<node id="8091790599" visible="true" version="2" changeset="153088398" timestamp="2024-06-23T22:54:13Z" user="canavan" uid="2603792" lat="50.9208920" lon="7.1707447"/> |
| 11 | +<node id="8091790600" visible="true" version="2" changeset="153088398" timestamp="2024-06-23T22:54:13Z" user="canavan" uid="2603792" lat="50.9208175" lon="7.1706533"/> |
| 12 | +<node id="8091790601" visible="true" version="2" changeset="153088398" timestamp="2024-06-23T22:54:13Z" user="canavan" uid="2603792" lat="50.9208577" lon="7.1708150"/> |
| 13 | +<node id="8091790604" visible="true" version="2" changeset="153088398" timestamp="2024-06-23T22:54:13Z" user="canavan" uid="2603792" lat="50.9207832" lon="7.1707235"/> |
| 14 | +<node id="12004717375" visible="true" version="2" changeset="153088398" timestamp="2024-06-23T22:54:13Z" user="canavan" uid="2603792" lat="50.9208780" lon="7.1707275"/> |
| 15 | +<way id="868101951" visible="true" version="7" changeset="153088398" timestamp="2024-06-23T22:54:13Z" user="canavan" uid="2603792"> |
| 16 | +<nd ref="8091790600"/> |
| 17 | +<nd ref="8091790604"/> |
| 18 | +<nd ref="8091790601"/> |
| 19 | +<nd ref="8091790599"/> |
| 20 | +<nd ref="12004717375"/> |
| 21 | +<nd ref="8091790600"/> |
| 22 | +<tag k="addr:city" v="Rösrath"/> |
| 23 | +<tag k="addr:housenumber" v="25a"/> |
| 24 | +<tag k="addr:postcode" v="51503"/> |
| 25 | +<tag k="addr:street" v="Mühlenweg"/> |
| 26 | +<tag k="building" v="semidetached_house"/> |
| 27 | +<tag k="building:levels" v="2"/> |
| 28 | +<tag k="roof:direction" v="across"/> |
| 29 | +<tag k="roof:levels" v="1.5"/> |
| 30 | +<tag k="roof:shape" v="gabled"/> |
| 31 | +</way> |
| 32 | +</osm>`; |
| 33 | + |
| 34 | +beforeEach(() => { |
| 35 | + errors = []; |
| 36 | +}); |
| 37 | + |
| 38 | +test('Constructor', () => { |
| 39 | + let xmlData = new window.DOMParser().parseFromString(data, 'text/xml'); |
| 40 | +}); |
0 commit comments