import { renderScoreTrendChart } from './archive-report.exam';

describe('renderScoreTrendChart', () => {
  it('places the first y-axis label 4px below the top gridline using numeric addition', () => {
    const html = renderScoreTrendChart([
      { examType: '文化', score: 60, examDate: '2026-01-01' },
      { examType: '文化', score: 90, examDate: '2026-02-01' },
      { examType: '文化', score: 70, examDate: '2026-03-01' },
    ] as never);

    expect(html).toContain('y="154.0"');
    expect(html).not.toContain('y="150.04"');
  });
});
