From 2012de92ddd10663bcfd7fa3a7e414ca9b1fcd73 Mon Sep 17 00:00:00 2001 From: Louise Foussat Date: Mon, 22 Mar 2021 11:15:04 +0000 Subject: [PATCH] update happiness manager subject: precise handling of case when a key already exist in original file --- subjects/happiness-manager/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subjects/happiness-manager/README.md b/subjects/happiness-manager/README.md index 21358bfc6..b50959a66 100644 --- a/subjects/happiness-manager/README.md +++ b/subjects/happiness-manager/README.md @@ -16,7 +16,7 @@ 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 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 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.