Skip to content

Commit a559548

Browse files
authored
Update gabledroofbug.test.js
1 parent 437033b commit a559548

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/gabledroofbug.test.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,11 @@ beforeEach(() => {
185185
test('Constructor', () => {
186186
const bldg = new Building('868101951', data);
187187
expect(bldg.parts.length).toBe(0);
188-
expect(BuildingShapeUtils.longestSideAngle(bldg.outerElement.shape)).toBe(90);
188+
const sideAngle = BuildingShapeUtils.longestSideAngle(bldg.outerElement.shape);
189+
// verify this
190+
// expect(sideAngle).toBe(-2.229783094955044);
191+
const sideAngleDeg = BuildingShape.atanRadToCompassDeg(sideAngle);
192+
expect(sideAngleDeg).toBe(300);
189193
const meshes = bldg.render();
190194
const roofmesh = meshes[0];
191195
const roofGeometry = roofmesh.geometry;

0 commit comments

Comments
 (0)