@@ -31,8 +31,7 @@ test('Test combining 2 ways 1->2', () => {
3131 let xml2 = parser . parseFromString ( way2 , 'text/xml' ) . getElementsByTagName ( 'way' ) [ 0 ] ;
3232 let result = BuildingShapeUtils . combineWays ( [ xml1 , xml2 ] ) ;
3333 expect ( result . length ) . toBe ( 1 ) ;
34- let expected = parser . parseFromString ( way3 , 'text/xml' ) ;
35- expect ( result [ 0 ] . outerHTML ) . toBe ( way3 ) ;
34+ expect ( result [ 0 ] . outerHTML ) . toBe ( way4 ) ;
3635} ) ;
3736
3837test ( 'Test combining 3 ways 2->1->3' , ( ) => {
@@ -46,7 +45,6 @@ test('Test combining 3 ways 2->1->3', () => {
4645 let xml3 = parser . parseFromString ( way2 , 'text/xml' ) . getElementsByTagName ( 'way' ) [ 0 ] ;
4746 let result = BuildingShapeUtils . combineWays ( [ xml1 , xml2 , xml3 ] ) ;
4847 expect ( result . length ) . toBe ( 1 ) ;
49- let expected = parser . parseFromString ( way4 , 'text/xml' ) ;
5048 expect ( result [ 0 ] . outerHTML ) . toBe ( way4 ) ;
5149} ) ;
5250
@@ -61,7 +59,6 @@ test('Test combining 2 unaligned ways', () => {
6159 let xml3 = parser . parseFromString ( way2 , 'text/xml' ) . getElementsByTagName ( 'way' ) [ 0 ] ;
6260 let result = BuildingShapeUtils . combineWays ( [ xml1 , xml2 , xml3 ] ) ;
6361 expect ( result . length ) . toBe ( 1 ) ;
64- let expected = parser . parseFromString ( way4 , 'text/xml' ) ;
6562 expect ( result [ 0 ] . outerHTML ) . toBe ( way4 ) ;
6663} ) ;
6764
@@ -76,8 +73,7 @@ test('Test combining 3 ways 1->2->3', () => {
7673 let xml3 = parser . parseFromString ( way3 , 'text/xml' ) . getElementsByTagName ( 'way' ) [ 0 ] ;
7774 let result = BuildingShapeUtils . combineWays ( [ xml1 , xml2 , xml3 ] ) ;
7875 expect ( result . length ) . toBe ( 1 ) ;
79- let expected = parser . parseFromString ( way4 , 'text/xml' ) ;
80- expect ( result [ 0 ] . outerHTML ) . toBe ( way3 ) ;
76+ expect ( result [ 0 ] . outerHTML ) . toBe ( way4 ) ;
8177} ) ;
8278
8379test ( 'Test combining 4 ways' , ( ) => {
@@ -92,6 +88,5 @@ test('Test combining 4 ways', () => {
9288 let xml3 = parser . parseFromString ( way3 , 'text/xml' ) . getElementsByTagName ( 'way' ) [ 0 ] ;
9389 let result = BuildingShapeUtils . combineWays ( [ xml1 , xml2 , xml3 ] ) ;
9490 expect ( result . length ) . toBe ( 1 ) ;
95- let expected = parser . parseFromString ( way4 , 'text/xml' ) ;
96- expect ( result [ 0 ] . outerHTML ) . toBe ( way3 ) ;
91+ expect ( result [ 0 ] . outerHTML ) . toBe ( way4 ) ;
9792} ) ;
0 commit comments