@@ -93,32 +93,6 @@ describe('MetadataContainerComponent', () => {
9393 } ,
9494 ) ;
9595
96- const testItem2 = Object . assign ( new Item ( ) ,
97- {
98- type : 'item' ,
99- metadata : {
100- 'dc.title' : [ metadataValue , metadataValue , metadataValue , metadataValue , metadataValue , metadataValue ] ,
101- 'dc.contributor.author' : [
102- {
103- value : 'Donohue, Tim'
104- } ,
105- {
106- value : 'Surname, Name'
107- }
108- ] ,
109- 'oairecerif.author.affiliation' : [
110- {
111- value : 'Duraspace'
112- } ,
113- {
114- value : '4Science'
115- }
116- ]
117- } ,
118- uuid : 'test-item-uuid' ,
119- }
120- ) ;
121-
12296 const fieldMock = {
12397 metadata : 'dc.title' ,
12498 label : 'Preferred name' ,
@@ -155,30 +129,6 @@ describe('MetadataContainerComponent', () => {
155129 valuesInline : true ,
156130 } ;
157131
158- const fieldMock1 = {
159- metadata : 'dc.title' ,
160- label : 'Preferred name' ,
161- rendering : 'text.more1.last2' ,
162- fieldType : 'METADATA' ,
163- style : null ,
164- styleLabel : 'test-style-label' ,
165- styleValue : 'test-style-value' ,
166- labelAsHeading : false ,
167- valuesInline : true
168- } ;
169-
170- const fieldMock2 = {
171- metadata : 'dc.title' ,
172- label : 'Preferred name' ,
173- rendering : 'text' ,
174- fieldType : 'METADATA' ,
175- style : null ,
176- styleLabel : 'test-style-label' ,
177- styleValue : 'test-style-value' ,
178- labelAsHeading : false ,
179- valuesInline : true
180- } ;
181-
182132 const fieldMockWithoutLabel = {
183133 metadata : 'dc.title' ,
184134 label : null ,
@@ -376,129 +326,6 @@ describe('MetadataContainerComponent', () => {
376326 } ,
377327 ] as NestedMetadataGroupEntry [ ] ;
378328
379- const mockEntry = [
380- {
381- 'field' :{
382- 'metadata' :'dc.identifier.doi' ,
383- 'label' :'DOI' ,
384- 'rendering' :null ,
385- 'fieldType' :'METADATA' ,
386- 'styleLabel' :'font-weight-bold col-3' ,
387- 'styleValue' :null ,
388- 'labelAsHeading' :false ,
389- 'valuesInline' :false
390- } ,
391- 'value' :{
392- 'uuid' :'e0f17692-576f-4b2f-a5d5-17c461704b29' ,
393- 'language' :null ,
394- 'value' :'10.1016/j.procs.2017.03.038' ,
395- 'place' :0 ,
396- 'authority' :null ,
397- 'confidence' :- 1
398- }
399- } ,
400- {
401- 'field' :{
402- 'metadata' :'dc.identifier.doi' ,
403- 'label' :'DOI' ,
404- 'rendering' :null ,
405- 'fieldType' :'METADATA' ,
406- 'styleLabel' :'font-weight-bold col-3' ,
407- 'styleValue' :null ,
408- 'labelAsHeading' :false ,
409- 'valuesInline' :false
410- } ,
411- 'value' :{
412- 'uuid' :'36169931-7195-41c6-89b4-d6dc7b75ef69' ,
413- 'language' :null ,
414- 'value' :'sas' ,
415- 'place' :1 ,
416- 'authority' :null ,
417- 'confidence' :- 1
418- }
419- } ,
420- {
421- 'field' :{
422- 'metadata' :'dc.identifier.doi' ,
423- 'label' :'DOI' ,
424- 'rendering' :null ,
425- 'fieldType' :'METADATA' ,
426- 'styleLabel' :'font-weight-bold col-3' ,
427- 'styleValue' :null ,
428- 'labelAsHeading' :false ,
429- 'valuesInline' :false
430- } ,
431- 'value' :{
432- 'uuid' :'2a7a6a10-0600-4340-b128-eda4e08f852c' ,
433- 'language' :null ,
434- 'value' :'sa67' ,
435- 'place' :2 ,
436- 'authority' :null ,
437- 'confidence' :- 1
438- }
439- } ,
440- {
441- 'field' :{
442- 'metadata' :'dc.identifier.doi' ,
443- 'label' :'DOI' ,
444- 'rendering' :null ,
445- 'fieldType' :'METADATA' ,
446- 'styleLabel' :'font-weight-bold col-3' ,
447- 'styleValue' :null ,
448- 'labelAsHeading' :false ,
449- 'valuesInline' :false
450- } ,
451- 'value' :{
452- 'uuid' :'7a75bb92-9af6-4e90-85a4-1d69b2941b1d' ,
453- 'language' :null ,
454- 'value' :'76' ,
455- 'place' :3 ,
456- 'authority' :null ,
457- 'confidence' :- 1
458- }
459- } ,
460- {
461- 'field' :{
462- 'metadata' :'dc.identifier.doi' ,
463- 'label' :'DOI' ,
464- 'rendering' :null ,
465- 'fieldType' :'METADATA' ,
466- 'styleLabel' :'font-weight-bold col-3' ,
467- 'styleValue' :null ,
468- 'labelAsHeading' :false ,
469- 'valuesInline' :false
470- } ,
471- 'value' :{
472- 'uuid' :'74ca8dcb-594b-4f57-b54f-942ffeb18466' ,
473- 'language' :null ,
474- 'value' :'899' ,
475- 'place' :4 ,
476- 'authority' :null ,
477- 'confidence' :- 1
478- }
479- } ,
480- {
481- 'field' :{
482- 'metadata' :'dc.identifier.doi' ,
483- 'label' :'DOI' ,
484- 'rendering' :null ,
485- 'fieldType' :'METADATA' ,
486- 'styleLabel' :'font-weight-bold col-3' ,
487- 'styleValue' :null ,
488- 'labelAsHeading' :false ,
489- 'valuesInline' :false
490- } ,
491- 'value' :{
492- 'uuid' :'1d032b00-5e59-4352-9471-60ccc077142b' ,
493- 'language' :null ,
494- 'value' :'Testing' ,
495- 'place' :5 ,
496- 'authority' :null ,
497- 'confidence' :- 1
498- }
499- }
500- ] as NestedMetadataGroupEntry [ ] ;
501-
502329 const bitstream1 = Object . assign ( new Bitstream ( ) , {
503330 id : 'bitstream1' ,
504331 uuid : 'bitstream1' ,
@@ -512,10 +339,6 @@ describe('MetadataContainerComponent', () => {
512339 getComputedData : jasmine . createSpy ( 'getComputedData' ) ,
513340 } ) ;
514341
515- const mockLoadMoreService = jasmine . createSpyObj ( 'LoadMoreService' , {
516- getComputedData : jasmine . createSpy ( 'getComputedData' ) ,
517- } ) ;
518-
519342 beforeEach ( async ( ) => {
520343 await TestBed . configureTestingModule ( {
521344 imports : [
0 commit comments