@@ -143,19 +143,23 @@ describe("fetches software extra data (from different providers)", () => {
143
143
expectToEqual ( updatedSoftwareExternalDatas , [ ] ) ;
144
144
} ) ;
145
145
146
- it ( "fetches correctly the logoUrl from comptoir du libre" , async ( ) => {
147
- const softwareExternalDatas = await db . selectFrom ( "software_external_datas" ) . selectAll ( ) . execute ( ) ;
148
- expectToEqual ( softwareExternalDatas , [ ] ) ;
146
+ it (
147
+ "fetches correctly the logoUrl from comptoir du libre" ,
148
+ async ( ) => {
149
+ const softwareExternalDatas = await db . selectFrom ( "software_external_datas" ) . selectAll ( ) . execute ( ) ;
150
+ expectToEqual ( softwareExternalDatas , [ ] ) ;
149
151
150
- await fetchAndSaveSoftwareExtraData ( acceleroId , { } ) ;
152
+ await fetchAndSaveSoftwareExtraData ( acceleroId , { } ) ;
151
153
152
- const results = await db . selectFrom ( "compiled_softwares" ) . select ( "comptoirDuLibreSoftware" ) . execute ( ) ;
153
- expect ( results ) . toHaveLength ( 1 ) ;
154
- expectToMatchObject ( results [ 0 ] ! . comptoirDuLibreSoftware , {
155
- name : "Acceleo" ,
156
- logoUrl : "https://comptoir-du-libre.org//img/files/Softwares/Acceleo/avatar/Acceleo.png"
157
- } ) ;
158
- } , 10_000 ) ;
154
+ const results = await db . selectFrom ( "compiled_softwares" ) . select ( "comptoirDuLibreSoftware" ) . execute ( ) ;
155
+ expect ( results ) . toHaveLength ( 1 ) ;
156
+ expectToMatchObject ( results [ 0 ] ! . comptoirDuLibreSoftware , {
157
+ name : "Acceleo" ,
158
+ logoUrl : "https://comptoir-du-libre.org//img/files/Softwares/Acceleo/avatar/Acceleo.png"
159
+ } ) ;
160
+ } ,
161
+ { timeout : 10_000 }
162
+ ) ;
159
163
160
164
it (
161
165
"gets software external data and saves it, and does not save other extra data if there is nothing relevant" ,
@@ -230,7 +234,7 @@ describe("fetches software extra data (from different providers)", () => {
230
234
. executeTakeFirstOrThrow ( ) ;
231
235
expect ( lastExtraDataFetchAt ) . toBeTruthy ( ) ;
232
236
} ,
233
- { timeout : 10_000 }
237
+ { timeout : 20_000 }
234
238
) ;
235
239
236
240
it (
@@ -546,6 +550,6 @@ describe("fetches software extra data (from different providers)", () => {
546
550
}
547
551
] ) ;
548
552
} ,
549
- { timeout : 10_000 }
553
+ { timeout : 20_000 }
550
554
) ;
551
555
} ) ;
0 commit comments