Skip to content

Commit 661a862

Browse files
authored
Update utils.test.js
1 parent 6c1a502 commit 661a862

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/utils.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,10 @@ describe('isSelfIntersecting', () => {
8181
['<way id="1"><nd ref="1"/><nd ref="2"/></way>', false, 'open non-intersecting'],
8282
['<way id="1"><nd ref="1"/><nd ref="2"/><nd ref="3"/><nd ref="1"/></way>', false, 'closed non-intersecting'],
8383
['<way id="1"><nd ref="1"/><nd ref="2"/><nd ref="3"/><nd ref="2"/></way>', true, 'open intersecting'],
84-
['<way id="1"><nd ref="1"/><nd ref="2"/><nd ref="3"/><nd ref="4"/><nd ref="3"/><nd ref="1"/></way>', true, 'closed intersecting']
84+
['<way id="1"><nd ref="1"/><nd ref="2"/><nd ref="3"/><nd ref="4"/><nd ref="3"/><nd ref="1"/></way>', true, 'closed intersecting'],
8585
])(${description}, (way, expected, description) => {
86-
let parser = new window.DOMParser();
87-
let xml = parser.parseFromString(way, 'text/xml').getElementsByTagName('way')[0];
88-
expect(BuildingShapeUtils.isSelfIntersecting(xml)).toBe(expected);
86+
let parser = new window.DOMParser();
87+
let xml = parser.parseFromString(way, 'text/xml').getElementsByTagName('way')[0];
88+
expect(BuildingShapeUtils.isSelfIntersecting(xml)).toBe(expected);
8989
});
9090
});

0 commit comments

Comments
 (0)