From f555264f1cb6a76e467afe55c3510ba92ed9e36a Mon Sep 17 00:00:00 2001 From: Bastien Seree Date: Thu, 19 Sep 2024 10:40:46 +0200 Subject: [PATCH] Cyberleague: [#134] Adapt score test to match schema update --- backend/web/tests/cyberleague/score.test.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/backend/web/tests/cyberleague/score.test.js b/backend/web/tests/cyberleague/score.test.js index c02cdfc349..c7168cb721 100644 --- a/backend/web/tests/cyberleague/score.test.js +++ b/backend/web/tests/cyberleague/score.test.js @@ -103,8 +103,7 @@ describe(`score tests`, () => { {$set: {answer: ANSWER_YES}} ) - const loadedS = await loadFromDb({model: 'score', fields: ['creator','answers','deviation','is_drafted']}) - + const loadedS = await loadFromDb({model: 'score', fields: ['creator','answers','deviation']}) let score = loadedS[0] expect(score.answers[0].answer).toEqual(ANSWER_NOT_APPLICABLE) @@ -113,7 +112,6 @@ describe(`score tests`, () => { //virtual verif expect(score.deviation).toEqual(1) - expect(score.is_drafted).toEqual(true) //computedScores verif const computedScores = await computeScores(score.answers)