From 1274d767423f1061e9e3f195358518c40efd6ce4 Mon Sep 17 00:00:00 2001 From: Bastien Seree Date: Wed, 16 Oct 2024 10:48:53 +0200 Subject: [PATCH] Cyberleague: [#159] complete expected answers in statistic.js --- .../server/plugins/cyberleague/statistic.js | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/backend/web/server/plugins/cyberleague/statistic.js b/backend/web/server/plugins/cyberleague/statistic.js index 92db513bc1..7ae7a3a57c 100644 --- a/backend/web/server/plugins/cyberleague/statistic.js +++ b/backend/web/server/plugins/cyberleague/statistic.js @@ -29,20 +29,20 @@ const regexTest = (field, text) => { const getIncreaseValue = (field, answer) => { //need specs to complete const expectedAnswer = { - securityIncidentManagement: ANSWER_NO, //for example - partner: ANSWER_YES, // for example - inventory: 'todo', - insurance: 'todo', - cyberRef: 'todo', - intrusion: 'todo', - externalized: 'todo', - webApp: 'todo', - antivirus: 'todo', - charter: 'todo', - financial: 'todo', - sensibilization: 'todo', - mfa: 'todo', - admin: 'todo', + securityIncidentManagement: ANSWER_YES, + partner: ANSWER_YES, + inventory: ANSWER_YES, + insurance: ANSWER_YES, + cyberRef: ANSWER_YES, + intrusion: ANSWER_NO, + externalized: ANSWER_YES, + webApp: ANSWER_YES, + antivirus: ANSWER_YES, + charter: ANSWER_NO, + financial: ANSWER_YES, + sensibilization: ANSWER_NO, + mfa: ANSWER_YES, + admin: ANSWER_YES, } return answer == expectedAnswer[field]