Skip to content

Commit 073f8ab

Browse files
authored
Update combine_ways.test.js
1 parent 662da99 commit 073f8ab

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/combine_ways.test.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ test('Test no combining necessary. one open way', () => {
2222
});
2323

2424
test('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

3839
test('Test combining 3 ways 2->1->3', () => {

0 commit comments

Comments
 (0)