| 1 | import { describe, expect, it } from 'vitest' |
| 2 | import { buildLocalCompletedGenerationPageSummary } from '../../../src/main/generation/generation-summary' |
| 3 | |
| 4 | describe('generation summary', () => { |
| 5 | it('builds a deterministic Chinese summary from the validated page title', () => { |
| 6 | expect( |
| 7 | buildLocalCompletedGenerationPageSummary({ |
| 8 | appLocale: 'zh', |
| 9 | pageTitle: '区域出生率差异' |
| 10 | }) |
| 11 | ).toBe('已完成《区域出生率差异》页面生成') |
| 12 | }) |
| 13 | |
| 14 | it('builds a deterministic English summary from the validated page title', () => { |
| 15 | expect( |
| 16 | buildLocalCompletedGenerationPageSummary({ |
| 17 | appLocale: 'en', |
| 18 | pageTitle: 'Regional birth rate differences' |
| 19 | }) |
| 20 | ).toBe('Completed page "Regional birth rate differences" generation') |
| 21 | }) |
| 22 | }) |
| 23 |