diff --git a/frontend/composables/recipes/use-recipe-ingredients.test.ts b/frontend/composables/recipes/use-recipe-ingredients.test.ts
index 52eaa3904..398c42da3 100644
--- a/frontend/composables/recipes/use-recipe-ingredients.test.ts
+++ b/frontend/composables/recipes/use-recipe-ingredients.test.ts
@@ -16,33 +16,27 @@ describe(parseIngredientText.name, () => {
...overrides,
});
- test("uses ingredient note if disableAmount: true", () => {
- const ingredient = createRecipeIngredient({ note: "foo" });
-
- expect(parseIngredientText(ingredient, true)).toEqual("foo");
- });
-
test("adds note section if note present", () => {
const ingredient = createRecipeIngredient({ note: "custom note" });
- expect(parseIngredientText(ingredient, false)).toContain("custom note");
+ expect(parseIngredientText(ingredient)).toContain("custom note");
});
test("ingredient text with fraction", () => {
const ingredient = createRecipeIngredient({ quantity: 1.5, unit: { fraction: true, id: "1", name: "cup" } });
- expect(parseIngredientText(ingredient, false, 1, true)).contain("11").and.to.contain("2");
+ expect(parseIngredientText(ingredient, 1, true)).contain("11").and.to.contain("2");
});
test("ingredient text with fraction when unit is null", () => {
const ingredient = createRecipeIngredient({ quantity: 1.5, unit: undefined });
- expect(parseIngredientText(ingredient, false, 1, true)).contain("11").and.to.contain("2");
+ expect(parseIngredientText(ingredient, 1, true)).contain("11").and.to.contain("2");
});
test("ingredient text with fraction no formatting", () => {
const ingredient = createRecipeIngredient({ quantity: 1.5, unit: { fraction: true, id: "1", name: "cup" } });
- const result = parseIngredientText(ingredient, false, 1, false);
+ const result = parseIngredientText(ingredient, 1, false);
expect(result).not.contain("<");
expect(result).not.contain(">");
@@ -52,7 +46,7 @@ describe(parseIngredientText.name, () => {
test("sanitizes html", () => {
const ingredient = createRecipeIngredient({ note: "" });
- expect(parseIngredientText(ingredient, false)).not.toContain("