what-to-cook/test/own-dish-hint.test.js
Peppa afb574393b
All checks were successful
peppa/lint lint: success за 0с
peppa/test test: success за 0с
peppa/build build: success за 0с
ci / checks (pull_request) Successful in 4s
deploy / deploy (pull_request) Successful in 8s
WTC-47: подсказка, что у своих блюд рецепта нет
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 08:11:11 +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));
});