Skip to content

Commit 77cec27

Browse files
authored
Update utils.test.js
1 parent cc4fb1e commit 77cec27

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

test/utils.test.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,6 @@ test('Edge Direction2', () => {
138138

139139
/** Test surrounds */
140140

141-
test('Longest side angle', () => {
142-
expect(BuildingShapeUtils.longestSideAngle(rightTriangle)).toBe(3 * Math.PI / 4);
143-
});
144-
145141
describe.each([
146142
[[-1, -1], false, 'Outside'],
147143
[[1, 1], true, 'Share Node'],
@@ -153,7 +149,16 @@ describe.each([
153149
});
154150
});
155151

152+
/** Test calculateRadius */
153+
156154
test('Calculate Radius', () => {
157155
expect(BuildingShapeUtils.calculateRadius(rightTriangle)).toBe(1);
158156
});
159157

158+
/** Test longestSideAngle */
159+
160+
test('Longest side angle', () => {
161+
expect(BuildingShapeUtils.longestSideAngle(rightTriangle)).toBe(3 * Math.PI / 4);
162+
});
163+
164+
/** Test repositionPoint */

0 commit comments

Comments
 (0)