44} from '../../../src/core/infra/repositories/ApiConfig'
55import { TestConstants } from '../../testHelpers/TestConstants'
66import { LicensesRepository } from '../../../src/licenses/infra/repositories/LicensesRepository'
7+ import { License } from '../../../src/licenses/domain/models/License'
78
89describe ( 'LicensesRepository' , ( ) => {
910 const sut : LicensesRepository = new LicensesRepository ( )
@@ -20,13 +21,13 @@ describe('LicensesRepository', () => {
2021 test ( 'should return list of available standard license terms' , async ( ) => {
2122 const actual = await sut . getAvailableStandardLicenses ( )
2223
23- const licenses = [
24+ const licenses : License [ ] = [
2425 {
2526 id : 1 ,
2627 name : 'CC0 1.0' ,
2728 shortDescription : 'Creative Commons CC0 1.0 Universal Public Domain Dedication.' ,
2829 uri : 'http://creativecommons.org/publicdomain/zero/1.0' ,
29- iconUrl : 'https://licensebuttons.net/p/zero/1.0/88x31.png' ,
30+ iconUri : 'https://licensebuttons.net/p/zero/1.0/88x31.png' ,
3031 active : true ,
3132 isDefault : true ,
3233 sortOrder : 0 ,
@@ -40,7 +41,7 @@ describe('LicensesRepository', () => {
4041 name : 'CC BY 4.0' ,
4142 shortDescription : 'Creative Commons Attribution 4.0 International License.' ,
4243 uri : 'http://creativecommons.org/licenses/by/4.0' ,
43- iconUrl : 'https://licensebuttons.net/l/by/4.0/88x31.png' ,
44+ iconUri : 'https://licensebuttons.net/l/by/4.0/88x31.png' ,
4445 active : true ,
4546 isDefault : false ,
4647 sortOrder : 2 ,
0 commit comments