File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -13,15 +13,12 @@ import { Shape } from 'three';
1313import { BuildingShapeUtils } from '../src/extras/BuildingShapeUtils.js' ;
1414// import { JSDOM } from 'jsdom';
1515
16- test ( 'Test no combining necessary. one closed way' , ( ) => {
17- var way1 = '<way id="1"><nd ref="1"/><nd ref="2"/><nd ref="3"/><nd ref="4"/><nd ref="1"/></way>' ;
18- var way3 = '<way id="1"><nd ref="1"/><nd ref="2"/><nd ref="3"/><nd ref="4"/><nd ref="1"/></way>' ;
16+ test ( 'Test no combining necessary. one open way' , ( ) => {
17+ var way1 = '<way id="1"><nd ref="1"/><nd ref="2"/><nd ref="3"/><nd ref="4"/></way>' ;
1918 let parser = new window . DOMParser ( ) ;
2019 let xml1 = parser . parseFromString ( way1 , 'text/xml' ) . getElementsByTagName ( 'way' ) [ 0 ] ;
2120 let result = BuildingShapeUtils . combineWays ( [ xml1 ] ) ;
22- expect ( result . length ) . toBe ( 1 ) ;
23- let expected = parser . parseFromString ( way3 , 'text/xml' ) ;
24- expect ( result [ 0 ] . outerHTML ) . toBe ( way3 ) ;
21+ expect ( result . length ) . toBe ( 0 ) ;
2522} ) ;
2623
2724test ( 'Test combining 2 ways 1->2' , ( ) => {
You can’t perform that action at this time.
0 commit comments