File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -22,9 +22,9 @@ test('Test no combining necessary. one open way', () => {
2222} ) ;
2323
2424test ( 'Test combining 2 ways 1->2' , ( ) => {
25- var way1 = '<way id="1"><nd ref="1"/><nd ref="2"/><nd ref="3"/>< /way>' ;
26- var way2 = '<way id="2"><nd ref="3 "/><nd ref="4"/><nd ref="1 "/></way>' ;
27- var way3 = '<way id="3"><nd ref="3"/><nd ref="4"/><nd ref=" 1"/></way>' ;
25+ var way1 = '<way id="1"><nd ref="1"/><nd ref="2"/></way>' ;
26+ var way2 = '<way id="2"><nd ref="2 "/><nd ref="3 "/></way>' ;
27+ var way3 = '<way id="3"><nd ref="3"/><nd ref="1"/></way>' ;
2828 let parser = new window . DOMParser ( ) ;
2929 let xml1 = parser . parseFromString ( way1 , 'text/xml' ) . getElementsByTagName ( 'way' ) [ 0 ] ;
3030 let xml2 = parser . parseFromString ( way2 , 'text/xml' ) . getElementsByTagName ( 'way' ) [ 0 ] ;
@@ -33,6 +33,7 @@ test('Test combining 2 ways 1->2', () => {
3333 expect ( result . length ) . toBe ( 1 ) ;
3434 expect ( BuildingShapeUtils . isClosed ( result [ 0 ] ) ) ;
3535 // expect 4 nodes
36+ // expect result to contain nodes 1, 2 and 3.
3637} ) ;
3738
3839test ( 'Test combining 3 ways 2->1->3' , ( ) => {
You can’t perform that action at this time.
0 commit comments