import test from "node:test"; import assert from "node:assert/strict"; import { messages } from "../src/i18n.js"; // WTC-47: подсказка говорит, что у своих блюд рецепта нет, и называет пометку test("подсказка про свои блюда на всех языках", () => { for (const l of ["ru", "kk", "en"]) assert.ok(messages[l].noRecipeHint, l); assert.match(messages.ru.noRecipeHint, /сами, рецепта нет/); assert.ok(messages.ru.noRecipeHint.includes(messages.ru.noRecipe)); assert.ok(!/PR|API|CI|localStorage/.test(messages.ru.noRecipeHint)); });