diff --git a/test/recipe-example.test.js b/test/recipe-example.test.js index 494f186..c60ec5d 100644 --- a/test/recipe-example.test.js +++ b/test/recipe-example.test.js @@ -53,7 +53,7 @@ test("Сценарий: Своё блюдо в списке", () => { assert.equal(findRecipe("Мамин пирог"), null); assert.match(messages.ru.noRecipeHint, /«Рецепта нет»/); assert.ok(messages.ru.noRecipeHint.includes(messages.ru.noRecipe)); - assert.match(read("app.js"), /\$\("noRecipeHint"\)\.hidden = !hasNoRecipe\(state\.dishes, findRecipe\)/); + assert.match(read("app.js"), /\$\("noRecipeHint"\)\.hidden = n !== 0 && !hasNoRecipe\(state\.dishes, findRecipe\)/); const html = read("index.html"); assert.ok(html.indexOf('id="list"') < html.indexOf('id="noRecipeHint"')); });