From 16c745ae9be6f0997d01cc09d96fea75dd9defb0 Mon Sep 17 00:00:00 2001 From: eslopfer Date: Thu, 29 Dec 2022 20:15:27 +0000 Subject: [PATCH] chore(happiness-manager): fix typos --- subjects/happiness-manager/README.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/subjects/happiness-manager/README.md b/subjects/happiness-manager/README.md index e8796c1e6..502a65fb3 100644 --- a/subjects/happiness-manager/README.md +++ b/subjects/happiness-manager/README.md @@ -7,21 +7,21 @@ As you're smart, you asked every guest of the party to precise in their answer the kind of drink they would enjoy and the kind of food they would die for. -Create a `happiness-manager.mjs` script that sort, who wants to drink what and +Create a `happiness-manager.mjs` script that sorts, who wants to drink what and who wants to eat what and integrate that in your barbecue's shopping list! -> note that you must only consider **vips** guests, those that answerd `'yes'` +> note that you must only consider as **VIP** guests, those that answered `'yes'` The script must: - Take a directory as first argument (the `guest` directory) - Take a file `.json` as second argument: - - If the file already exists, it will add the informations to it. If some elements already exist in the original file, it will be replaced by new values. + - If the file already exists, it will add the information to it. If some elements already exist in the original file, it will be replaced by new values. - If it doesn't, the script must handle the creation of the file. -- Handle case when no one answered yes to the invitation: - - `No one is coming.` has to appear in console. +- Handle the case when no one answered yes to the invitation: + - `No one is coming.` has to appear in the console. - No file is updated/created. -- Handle cases when answers contains no "food" information, or no "drink" +- Handle cases when answers contain no "food" information, or no "drink" information - Handle cases when no one has chosen a category (for example: no one chose to drink softs). This category should not appear in the final list. @@ -29,24 +29,24 @@ The script must: You have to handle the info like this: - Drinks: - - Iced tea: 1 pack / 6 vips (rounded up). Expected key: `iced-tea-bottles`. - - Water, sparkling water, softs: 1 bottle / 4 vips in each category (rounded up). + - Iced tea: 1 pack / 6 VIPs (rounded up). Expected key: `iced-tea-bottles`. + - Water, sparkling water, softs: 1 bottle / 4 VIPs in each category (rounded up). Expected keys: `sparkling-water-bottles`, `water-bottles`, `soft-bottles`. - Food: - Veggies and vegans: 1 eggplant, 1 courgette, 3 mushrooms and 1 hummus / 3 - vips in these categories put together. Expected keys: `eggplants`, + VIPs in these categories put together. Expected keys: `eggplants`, `mushrooms`, `hummus`, `courgettes`. - Carnivores: 1 burger per person. Expected key: `burgers`. - Fish lovers: 1 sardine per person. Expected key: `sardines`. - Omnivores: 1 chicken+shrimps+pepper kebab / person. Expected key: `kebabs`. - - Bonus: you'll add 1 potatoe per person (all categories put together). + - Bonus: you'll add 1 potato per person (all categories put together). Expected key: `potatoes`. -The infos have to be formated like this in the `.json` file: +The info has to be formated like this in the `.json` file: ```js { - "key": 1 // according to actual number associated to the elem + "key": 1 // according to actual number associated to the element } ```