what-to-cook/test/own-dish-hint.test.js
Peppa 3676bab4bc WTC-47: подсказка, что у своих блюд рецепта нет
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-17 16:59:30 +05:00

11 lines
637 B
JavaScript
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 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));
});