@@ -12,7 +12,7 @@ describe('Shared | Unit | Domain | Use Cases | get-next-challenge', function ()
12
12
let evaluationUsecases_getNextChallengeForDemoStub ;
13
13
let evaluationUsecases_getNextChallengeForCampaignAssessmentStub ;
14
14
let evaluationUsecases_getNextChallengeForCompetenceEvaluationStub ;
15
- let certificationVersionRepository_selectNextCertificationChallengeStub ;
15
+ let certificationEvaluationRepository_selectNextCertificationChallengeStub ;
16
16
17
17
beforeEach ( function ( ) {
18
18
userId = 'someUserId' ;
@@ -29,7 +29,7 @@ describe('Shared | Unit | Domain | Use Cases | get-next-challenge', function ()
29
29
evaluationUsecases_getNextChallengeForCompetenceEvaluationStub = sinon
30
30
. stub ( )
31
31
. named ( 'getNextChallengeForCompetenceEvaluation' ) ;
32
- certificationVersionRepository_selectNextCertificationChallengeStub = sinon
32
+ certificationEvaluationRepository_selectNextCertificationChallengeStub = sinon
33
33
. stub ( )
34
34
. named ( 'selectNextCertificationChallenge' ) ;
35
35
preventStubsToBeCalledUnexpectedly ( [
@@ -39,7 +39,7 @@ describe('Shared | Unit | Domain | Use Cases | get-next-challenge', function ()
39
39
evaluationUsecases_getNextChallengeForDemoStub ,
40
40
evaluationUsecases_getNextChallengeForCampaignAssessmentStub ,
41
41
evaluationUsecases_getNextChallengeForCompetenceEvaluationStub ,
42
- certificationVersionRepository_selectNextCertificationChallengeStub ,
42
+ certificationEvaluationRepository_selectNextCertificationChallengeStub ,
43
43
] ) ;
44
44
45
45
const assessmentRepository = {
@@ -55,8 +55,8 @@ describe('Shared | Unit | Domain | Use Cases | get-next-challenge', function ()
55
55
getNextChallengeForCompetenceEvaluation : evaluationUsecases_getNextChallengeForCompetenceEvaluationStub ,
56
56
} ;
57
57
58
- const certificationVersionRepository = {
59
- selectNextCertificationChallenge : certificationVersionRepository_selectNextCertificationChallengeStub ,
58
+ const certificationEvaluationRepository = {
59
+ selectNextCertificationChallenge : certificationEvaluationRepository_selectNextCertificationChallengeStub ,
60
60
} ;
61
61
62
62
dependencies = {
@@ -65,7 +65,7 @@ describe('Shared | Unit | Domain | Use Cases | get-next-challenge', function ()
65
65
locale,
66
66
assessmentRepository,
67
67
evaluationUsecases,
68
- certificationVersionRepository ,
68
+ certificationEvaluationRepository ,
69
69
} ;
70
70
} ) ;
71
71
@@ -162,7 +162,7 @@ describe('Shared | Unit | Domain | Use Cases | get-next-challenge', function ()
162
162
163
163
it ( 'should call usecase and return value from certification usecase' , async function ( ) {
164
164
const challenge = domainBuilder . buildChallenge ( { id : 'challengeForCertification' } ) ;
165
- certificationVersionRepository_selectNextCertificationChallengeStub
165
+ certificationEvaluationRepository_selectNextCertificationChallengeStub
166
166
. withArgs ( { assessmentId : assessment . id , locale } )
167
167
. resolves ( challenge ) ;
168
168
const actualNextChallenge = await getNextChallenge ( dependencies ) ;
0 commit comments