@@ -5,7 +5,6 @@ import { TargetProfileForSpecifier } from '../../../../../../src/prescription/ta
5
5
import { usecases } from '../../../../../../src/prescription/target-profile/domain/usecases/index.js' ;
6
6
import { catchErr , expect , sinon } from '../../../../../test-helper.js' ;
7
7
import { domainBuilder } from '../../../../../tooling/domain-builder/domain-builder.js' ;
8
- import { buildSkill } from '../../../../../tooling/learning-content-builder/build-skill.js' ;
9
8
10
9
describe ( 'Unit | API | TargetProfile' , function ( ) {
11
10
describe ( '#getById' , function ( ) {
@@ -106,7 +105,7 @@ describe('Unit | API | TargetProfile', function () {
106
105
findSkillsByTargetProfileIdsStub . rejects ( ) ;
107
106
findSkillsByTargetProfileIdsStub
108
107
. withArgs ( { targetProfileIds : [ 'targetProfileId' ] } )
109
- . resolves ( [ buildSkill ( { id : 'monSkillId' , level : 18 } ) ] ) ;
108
+ . resolves ( [ domainBuilder . buildSkill ( { id : 'monSkillId' , difficulty : 18 } ) ] ) ;
110
109
111
110
// when
112
111
const result = await targetProfileApi . findSkillsByTargetProfileIds ( [ 'targetProfileId' ] ) ;
@@ -115,7 +114,7 @@ describe('Unit | API | TargetProfile', function () {
115
114
expect ( result ) . to . have . lengthOf ( 1 ) ;
116
115
expect ( result [ 0 ] ) . instanceOf ( TargetProfileSkill ) ;
117
116
expect ( result [ 0 ] . id ) . equals ( 'monSkillId' ) ;
118
- expect ( result [ 0 ] . level ) . equals ( 18 ) ;
117
+ expect ( result [ 0 ] . difficulty ) . equals ( 18 ) ;
119
118
} ) ;
120
119
} ) ;
121
120
} ) ;
0 commit comments