We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be455c9 commit 1eb9614Copy full SHA for 1eb9614
test/gabledroofbug.test.js
@@ -52,6 +52,18 @@ test ('Factory', () => {
52
expect(global.fetch.mock.calls[0][0]).toBe('/api/data');
53
});
54
55
+// compare the object rendered from the requested way data to that rendered
56
+// from the requested map data to see if one errors and one does not.
57
+test('Constructor', () => {
58
+ const bldg = new Building('31361386', data);
59
+ expect(bldg.parts.length).toBe(1);
60
+ const part = bldg.parts[0];
61
+ const meshes = part.render();
62
+ const roofmesh = meshes[0];
63
+ const roofGeometry = roofmesh.geometry;
64
+ expect(roofGeometry.constructor.name).toBe('WedgeGeometry');
65
+});
66
+
67
window.printError = printError;
68
69
var errors = [];
0 commit comments