Skip to content

Commit 7928ef9

Browse files
authored
Update combine_ways.test.js
1 parent 073f8ab commit 7928ef9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/combine_ways.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@ test('Test combining 2 ways 1->2', () => {
3030
let xml2 = parser.parseFromString(way2, 'text/xml').getElementsByTagName('way')[0];
3131
let xml3 = parser.parseFromString(way3, 'text/xml').getElementsByTagName('way')[0];
3232
let result = BuildingShapeUtils.combineWays([xml1, xml2, xml3]);
33+
// Expect one closed way with 3 unique nodes.
3334
expect(result.length).toBe(1);
3435
expect(BuildingShapeUtils.isClosed(result[0]));
35-
// expect 4 nodes
36+
expect(result[0].getElementsByTagName('nd').length).toBe(4)
3637
// expect result to contain nodes 1, 2 and 3.
3738
});
3839

0 commit comments

Comments
 (0)