Skip to content

Commit

Permalink
refactor(api): rename accessibility1 and 2 for better clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
HEYGUL committed Sep 23, 2024
1 parent 95cffd1 commit f9cc2d9
Showing 1 changed file with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ describe('Integration | Repository | challenge-repository', function () {
...challenge,
focused: challenge.focusable,
skill: domainBuilder.buildSkill({ ...skill, difficulty: skill.level }),
blindnessCompatibility: challenge.accessibility1,
colorBlindnessCompatibility: challenge.accessibility2,
});

// when
Expand Down Expand Up @@ -89,6 +91,8 @@ describe('Integration | Repository | challenge-repository', function () {
webComponentProps: { prop1: 'value1', prop2: 'value2' },
focused: challenge.focusable,
skill: domainBuilder.buildSkill({ ...skill, difficulty: skill.level }),
blindnessCompatibility: challenge.accessibility1,
colorBlindnessCompatibility: challenge.accessibility2,
});

// when
Expand All @@ -113,7 +117,16 @@ describe('Integration | Repository | challenge-repository', function () {

const learningContent = {
skills: [{ ...skill, status: 'actif' }],
challenges: [{ ...challenge, skillId: 'recSkill1', alpha: 1, delta: 0 }],
challenges: [
{
...challenge,
skillId: 'recSkill1',
alpha: 1,
delta: 0,
blindnessCompatibility: challenge.accessibility1,
colorBlindnessCompatibility: challenge.accessibility2,
},
],
};

mockLearningContent(learningContent);
Expand Down

0 comments on commit f9cc2d9

Please sign in to comment.