/** * Mannerist herm pilasters must read as clean architecture, not flat white strips * with floating edge artifacts. * node --test server/__tests__/mannerist-columns.test.js */ const { describe, it } = require('node:test'); const assert = require('node:assert/strict'); const fs = require('node:fs'); const path = require('node:path'); const ROOT = path.join(__dirname, '..', '..'); const DETAILS = fs.readFileSync(path.join(ROOT, 'client/src/components/hall-details/courtly.tsx'), 'utf8'); function manneristBlock() { const start = DETAILS.indexOf('export function ManneristDetails'); assert.ok(start >= 0, 'ManneristDetails must exist'); const next = DETAILS.indexOf('export function ', start + 1); return DETAILS.slice(start, next > start ? next : undefined); } describe('Mannerist herm columns', () => { it('does not use the glitchy thin shaft + offset rustication + torus capital', () => { const block = manneristBlock(); assert.doesNotMatch(block, /boxGeometry args=\{\[0\.09, 3\.8, 0\.3\]\}/); assert.doesNotMatch(block, /position=\{\[side \* 0\.03, y, 0\]\}/); assert.doesNotMatch(block, /torusGeometry args=\{\[0\.14, 0\.055/); }); it('builds herm pilasters with clearance and a proper capital', () => { const block = manneristBlock(); assert.match(block, /herm|pilaster/i); assert.match(block, /clearLeft|clearRight|useWallClearance/); assert.match(block, /capital|console|abacus/i); }); });