Skip to content

Commit fdb12d1

Browse files
tech(orga): cleanup
1 parent 249be30 commit fdb12d1

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

api/src/prescription/campaign-participation/infrastructure/repositories/participant-results-shared-repository.js

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ const participantResultsSharedRepository = {
2121
const skillIds = await campaignRepository.findSkillIdsByCampaignParticipationId({
2222
campaignParticipationId,
2323
});
24-
// Go directly through ke snapshots
2524
const knowledgeElements = await knowledgeElementSnapshotRepository.findByCampaignParticipationIds([
2625
campaignParticipationId,
2726
]);

api/tests/prescription/campaign-participation/integration/infrastructure/repositories/campaign-analysis-repository_test.js

+1-6
Original file line numberDiff line numberDiff line change
@@ -399,12 +399,7 @@ describe('Integration | Repository | Campaign analysis repository', function ()
399399
userId: userWithCampaignParticipationFred.userId,
400400
campaignParticipationId: userWithCampaignParticipationFred.campaignParticipation.id,
401401
snappedAt: userWithCampaignParticipationFred.campaignParticipation.sharedAt,
402-
snapshot: JSON.stringify(
403-
knowledgeElements.filter(
404-
({ userId, createdAt }) =>
405-
userId === userWithCampaignParticipationFred.userId && createdAt <= shareDate,
406-
),
407-
),
402+
snapshot: JSON.stringify(knowledgeElements.filter(({ createdAt }) => createdAt <= shareDate)),
408403
});
409404
return databaseBuilder.commit();
410405
});

api/tests/shared/integration/domain/services/placement-profile-service_test.js

-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,6 @@ describe('Shared | Integration | Domain | Services | Placement Profile Service',
184184
});
185185

186186
context('V2 Profile', function () {
187-
//TODO: créer des campaignParticipation
188187
describe('#getPlacementProfile', function () {
189188
it('should assign 0 pixScore and level of 0 to user competence when not assessed', async function () {
190189
// when

0 commit comments

Comments
 (0)