Skip to content

Commit 87014f5

Browse files
committed
test(export3d): verify STL base plate is always included
1 parent 7e3d6a5 commit 87014f5

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

lib/export3d.test.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,11 @@ it('generates structurally valid ASCII STL facets', () => {
8989
expect(line.trim()).toMatch(/^vertex -?\d+\.\d+ -?\d+\.\d+ -?\d+\.\d+$/);
9090
});
9191
});
92+
93+
it('always includes a base plate even with no tower data', () => {
94+
const stl = generateMonolithSTL([]);
95+
96+
expect(stl).toContain('solid commitpulse_monolith');
97+
expect(stl).toContain('endsolid commitpulse_monolith');
98+
expect(stl).toContain('facet normal');
99+
});

0 commit comments

Comments
 (0)