Skip to content

Commit be86e01

Browse files
authored
Update gabledroofbug.test.js
1 parent c94ff35 commit be86e01

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/gabledroofbug.test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import {jest} from '@jest/globals';
55
import fetchMock from 'jest-fetch-mock';
66
fetchMock.enableMocks();
77
import { Building } from '../src/building.js';
8-
import { BuildingPart } from '../src/buildingpart.js';
98
import { BuildingShapeUtils } from '../src/extras/BuildingShapeUtils.js';
109
import { TextEncoder } from 'node:util';
1110

@@ -186,7 +185,7 @@ beforeEach(() => {
186185
test('Constructor', () => {
187186
const bldg = new Building('868101951', data);
188187
expect(bldg.parts.length).toBe(0);
189-
expect(BuildingPart.getLongestSideAngle(bldg.outerElement)).toBe(90);
188+
expect(BuildingShapeUtils.longestSideAngle(bldg.outerElement)).toBe(90);
190189
const meshes = bldg.render();
191190
const roofmesh = meshes[0];
192191
const roofGeometry = roofmesh.geometry;

0 commit comments

Comments
 (0)