You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Be my guest dude 😀 I would probably start with the tests on this one (that article I linked to has some calculations, they could basically form the tests).
Absolutely no hurry - I've assigned the issue to you, let me know if you change your mind.
We have the abv% for each ingredient - from this it should be possible to calculated the overall abv% for the cocktail and display it. We would need;
fetchCocktails
function that adds it (in much the same way we're adding the slug there)This might be a good resource for writing test cases:
https://www.artofdrink.com/blog/alcohol-percentages-of-cocktails?fbclid=IwAR0kWRiv5P8_Yv0iYIcqpM43mHXzzeJ1_fdn_rwqxGoTK9xbhxBe77UVomU
This needs to be calculated rather than hard-coded against each cocktail so that if we ever add new cocktails it'll just all automatically happen.
The text was updated successfully, but these errors were encountered: