Skip to content

Commit

Permalink
Cyberleague: [premieroctet#159] complete expected answers in statisti…
Browse files Browse the repository at this point in the history
…c.js
  • Loading branch information
Bastien-Wappizy committed Oct 16, 2024
1 parent 81ff41f commit 1274d76
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions backend/web/server/plugins/cyberleague/statistic.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 1274d76

Please sign in to comment.