qazaq-legacy-foundation-web/src/i18n/book-title.test.ts
2026-11-17 22:26:34 +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)
})
}
})