Skip to content

Commit cb5ae7b

Browse files
authored
Update utils.test.js
1 parent 0ab1b42 commit cb5ae7b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/utils.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,13 @@ test('Longest side angle', () => {
7676
expect(BuildingShapeUtils.longestSideAngle(rightTriangle)).toBe(-Math.PI / 4);
7777
});
7878

79-
describe('isSelfIntersecting', () => {
80-
test.each([
79+
describe.each([
8180
['<way id="1"><nd ref="1"/><nd ref="2"/></way>', false, 'open non-intersecting'],
8281
['<way id="1"><nd ref="1"/><nd ref="2"/><nd ref="3"/><nd ref="1"/></way>', false, 'closed non-intersecting'],
8382
['<way id="1"><nd ref="1"/><nd ref="2"/><nd ref="3"/><nd ref="2"/></way>', true, 'open intersecting'],
8483
['<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'],
85-
])(`${description}`, (way, expected, description) => {
84+
])('isSelfIntersecting', (way, expected, description) => {
85+
test(`${description}`, () => {
8686
let parser = new window.DOMParser();
8787
let xml = parser.parseFromString(way, 'text/xml').getElementsByTagName('way')[0];
8888
expect(BuildingShapeUtils.isSelfIntersecting(xml)).toBe(expected);

0 commit comments

Comments
 (0)