import { describe, expect, it } from 'vitest'; import { ABUT_SHAPE_DEFAULT, resolveShape } from '../src/core/abut/shape'; import { abutSectionSvg } from '../src/view/abut-section-svg'; describe('교대 삽도 (벽체·흉벽 개략 단면, 시안 ②)', () => { it('names the card values in mm, including the new ones', () => { const svg = abutSectionSvg(resolveShape(), ABUT_SHAPE_DEFAULT); expect(svg).toContain('흉벽 높이 2500'); expect(svg).toContain('벽체 두께 2400'); expect(svg).toContain('저판 뒷굽 -1800'); expect(svg).toContain('수축줄눈 1개'); expect(svg).toContain('Level 좌 450 · 우 995'); }); it('follows a changed value, and says it is not to scale', () => { const v = { ...ABUT_SHAPE_DEFAULT, shrinkJointCount: 3, parapetHeightMm: 2200 }; const svg = abutSectionSvg(resolveShape(v), v); expect(svg).toContain('수축줄눈 3개'); expect(svg).toContain('흉벽 높이 2200'); expect(svg).toContain('축척 아님'); }); it('draws the footing, wall and parapet as separate shapes', () => { const svg = abutSectionSvg(resolveShape(), ABUT_SHAPE_DEFAULT); expect(svg.match(/')).toBe(true); }); });