@@ -173,10 +173,12 @@ describe('', () => {
173173 expect ( thumbnail ) . toBeTruthy ( ) ;
174174 } ) ) ;
175175
176- it ( 'should show default thumbnail' , ( ) => {
177- expect ( component . default ) . toBe ( 'assets/images/file-placeholder.svg' ) ;
176+ it ( 'should show default thumbnail' , ( done ) => {
177+ component . default$ . subscribe ( image => {
178+ expect ( image ) . toBe ( 'assets/images/file-placeholder.svg' ) ;
179+ done ( ) ;
180+ } ) ;
178181 } ) ;
179-
180182 } ) ;
181183
182184 describe ( 'When bitstreams are only original' , ( ) => {
@@ -193,10 +195,12 @@ describe('', () => {
193195 expect ( thumbnail ) . toBeTruthy ( ) ;
194196 } ) ) ;
195197
196- it ( 'should show default thumbnail' , ( ) => {
197- expect ( component . default ) . toBe ( 'assets/images/file-placeholder.svg' ) ;
198+ it ( 'should show default thumbnail' , ( done ) => {
199+ component . default$ . subscribe ( image => {
200+ expect ( image ) . toBe ( 'assets/images/file-placeholder.svg' ) ;
201+ done ( ) ;
202+ } ) ;
198203 } ) ;
199-
200204 } ) ;
201205
202206 describe ( 'When bitstreams are only thumbnail' , ( ) => {
@@ -267,10 +271,12 @@ describe('', () => {
267271 expect ( thumbnail ) . toBeTruthy ( ) ;
268272 } ) ;
269273
270- it ( 'should show default thumbnail' , ( ) => {
271- expect ( component . default ) . toBe ( 'assets/images/file-placeholder.svg' ) ;
274+ it ( 'should show default thumbnail' , ( done ) => {
275+ component . default$ . subscribe ( image => {
276+ expect ( image ) . toBe ( 'assets/images/file-placeholder.svg' ) ;
277+ done ( ) ;
278+ } ) ;
272279 } ) ;
273-
274280 } ) ;
275281
276282 describe ( 'When bitstreams are only original without the right metadata information' , ( ) => {
@@ -282,8 +288,11 @@ describe('', () => {
282288 fixture . detectChanges ( ) ;
283289 } ) ;
284290
285- it ( 'should not show bitstream content image src but the default image' , ( ) => {
286- expect ( component . default ) . toBe ( 'assets/images/file-placeholder.svg' ) ;
291+ it ( 'should not show bitstream content image src but the default image' , ( done ) => {
292+ component . default$ . subscribe ( image => {
293+ expect ( image ) . toBe ( 'assets/images/file-placeholder.svg' ) ;
294+ done ( ) ;
295+ } ) ;
287296 } ) ;
288297
289298 } ) ;
@@ -297,10 +306,12 @@ describe('', () => {
297306 fixture . detectChanges ( ) ;
298307 } ) ;
299308
300- it ( 'should not show thumbnail content image src but the default image' , ( ) => {
301- expect ( component . default ) . toBe ( 'assets/images/file-placeholder.svg' ) ;
309+ it ( 'should not show thumbnail content image src but the default image' , ( done ) => {
310+ component . default$ . subscribe ( image => {
311+ expect ( image ) . toBe ( 'assets/images/file-placeholder.svg' ) ;
312+ done ( ) ;
313+ } ) ;
302314 } ) ;
303-
304315 } ) ;
305316
306317 describe ( 'When bitstreams are only original with the right metadata information' , ( ) => {
@@ -312,8 +323,11 @@ describe('', () => {
312323 fixture . detectChanges ( ) ;
313324 } ) ;
314325
315- it ( 'should not show thumbnail content image src but the default image' , ( ) => {
316- expect ( component . default ) . toBe ( 'assets/images/file-placeholder.svg' ) ;
326+ it ( 'should not show thumbnail content image src but the default image' , ( done ) => {
327+ component . default$ . subscribe ( image => {
328+ expect ( image ) . toBe ( 'assets/images/file-placeholder.svg' ) ;
329+ done ( ) ;
330+ } ) ;
317331 } ) ;
318332
319333 } ) ;
0 commit comments