Skip to content

Commit

Permalink
Cyberleague: [premieroctet#134] Adapt score test to match schema update
Browse files Browse the repository at this point in the history
  • Loading branch information
Bastien-Wappizy committed Sep 19, 2024
1 parent dde9d06 commit f555264
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions backend/web/tests/cyberleague/score.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit f555264

Please sign in to comment.