-
-
Notifications
You must be signed in to change notification settings - Fork 400
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: set max percent of sugar and salt ingredients based on nutritio…
…n facts (#9276)
- Loading branch information
1 parent
040f6ca
commit 80bcc29
Showing
15 changed files
with
324 additions
and
189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
tests/unit/expected_test_results/ingredients_percent/max-sugar-salt-nutrition-facts.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
[ | ||
{ | ||
"id" : "en:water", | ||
"percent_estimate" : 92.5, | ||
"percent_max" : 100, | ||
"percent_min" : 85, | ||
"text" : "water" | ||
}, | ||
{ | ||
"id" : "en:sugar", | ||
"percent_estimate" : 3.75, | ||
"percent_max" : 10, | ||
"percent_min" : 0, | ||
"text" : "sugar" | ||
}, | ||
{ | ||
"id" : "en:salt", | ||
"percent_estimate" : 3.75, | ||
"percent_max" : 5, | ||
"percent_min" : 0, | ||
"text" : "salt" | ||
} | ||
] |
Oops, something went wrong.