import { describe, expect, it } from 'vitest'; import { buildPier } from '../src/core/geometry'; import { bearingSectionSvg } from '../src/view/bearing-section-svg'; import { loadP1 } from './helpers'; const model = buildPier(loadP1()); const integrated = buildPier({ ...loadP1(), bearingLayout: '일체' }); describe('교량받침 상세 단면 (승인 2026-10-26, C안 2026-11-03)', () => { it('labels EL.X at the mortar top and the block height h1 for each bearing', () => { const svg = bearingSectionSvg(model, 0); expect(svg).toContain('EL.X'); expect(svg).toContain('h1 150'); }); it('일체 draws one stepped outline (a polygon) for the pair', () => { expect(bearingSectionSvg(integrated, 0)).toContain(' { expect(bearingSectionSvg(model, 99)).toBe(''); }); });