@@ -47,7 +47,7 @@ let bundle;
4747let comp : EditBitstreamPageComponent ;
4848let fixture : ComponentFixture < EditBitstreamPageComponent > ;
4949
50- fdescribe ( 'EditBitstreamPageComponent' , ( ) => {
50+ describe ( 'EditBitstreamPageComponent' , ( ) => {
5151
5252 beforeEach ( ( ) => {
5353 bitstreamID = 'current-bitstream-id' ;
@@ -223,7 +223,7 @@ fdescribe('EditBitstreamPageComponent', () => {
223223 spyOn ( router , 'navigate' ) ;
224224 } ) ;
225225
226- fdescribe ( 'on startup' , ( ) => {
226+ describe ( 'on startup' , ( ) => {
227227 let rawForm ;
228228
229229 beforeEach ( ( ) => {
@@ -454,13 +454,18 @@ fdescribe('EditBitstreamPageComponent', () => {
454454 self : 'bitstream-selflink'
455455 } ,
456456 bundle : createSuccessfulRemoteDataObject$ ( {
457+ _links : {
458+ primaryBitstream : {
459+ href : 'bundle-selflink'
460+ }
461+ } ,
457462 item : createSuccessfulRemoteDataObject$ ( Object . assign ( new Item ( ) , {
458463 uuid : 'some-uuid' ,
459464 firstMetadataValue ( keyOrKeys : string | string [ ] , valueFilter ?: MetadataValueFilter ) : string {
460465 return 'True' ;
461466 }
462467 } ) )
463- } )
468+ } ) ,
464469 } ) ;
465470 bitstreamService = jasmine . createSpyObj ( 'bitstreamService' , {
466471 findById : createSuccessfulRemoteDataObject$ ( bitstream ) ,
@@ -574,16 +579,22 @@ fdescribe('EditBitstreamPageComponent', () => {
574579 self : 'bitstream-selflink'
575580 } ,
576581 bundle : createSuccessfulRemoteDataObject$ ( {
582+ _links : {
583+ primaryBitstream : {
584+ href : 'bundle-selflink'
585+ }
586+ } ,
577587 item : createSuccessfulRemoteDataObject$ ( Object . assign ( new Item ( ) , {
578588 uuid : 'some-uuid' ,
579589 firstMetadataValue ( keyOrKeys : string | string [ ] , valueFilter ?: MetadataValueFilter ) : string {
580590 return 'True' ;
581591 }
582592 } ) )
583- } )
593+ } ) ,
584594 } ) ;
585595 bitstreamService = jasmine . createSpyObj ( 'bitstreamService' , {
586596 findById : createSuccessfulRemoteDataObject$ ( bitstream ) ,
597+ findByHref : createSuccessfulRemoteDataObject$ ( bitstream ) ,
587598 update : createSuccessfulRemoteDataObject$ ( bitstream ) ,
588599 updateFormat : createSuccessfulRemoteDataObject$ ( bitstream ) ,
589600 commitUpdates : { } ,
0 commit comments