We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 437033b commit a559548Copy full SHA for a559548
test/gabledroofbug.test.js
@@ -185,7 +185,11 @@ beforeEach(() => {
185
test('Constructor', () => {
186
const bldg = new Building('868101951', data);
187
expect(bldg.parts.length).toBe(0);
188
- expect(BuildingShapeUtils.longestSideAngle(bldg.outerElement.shape)).toBe(90);
+ 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);
193
const meshes = bldg.render();
194
const roofmesh = meshes[0];
195
const roofGeometry = roofmesh.geometry;
0 commit comments