qazaq-legacy-foundation-web/src/i18n/book-title.test.ts
Peppa 68fd67b89b
All checks were successful
peppa/lint lint: success за 1с
peppa/typecheck typecheck: success за 2с
peppa/test test: success за 0с
peppa/build build: success за 40с
ci / checks (pull_request) Successful in 1m14s
deploy / deploy (pull_request) Successful in 1m52s
QLFW-56: название книги одинаково на всех страницах и языках
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-17 19:01:18 +05:00

15 lines
625 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { describe, expect, it } from 'vitest'
import { getDict } from '@/i18n'
const TITLE = 'Ермек Серкебаев. И жизнь, и молодость, и счастье… Новые страницы'
describe('Сценарий: название книги одинаково на всех языках', () => {
for (const l of ['ru', 'kk', 'en'] as const) {
it(`название не переводится и пишется с многоточием (${l})`, () => {
const d = getDict(l)
expect(d.book.title).toBe(TITLE)
expect(d.book.buy?.intro ?? '').toContain(TITLE)
})
}
})