All checks were successful
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
15 lines
625 B
TypeScript
15 lines
625 B
TypeScript
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)
|
||
})
|
||
}
|
||
})
|