@@ -132,15 +132,6 @@ export class MockMetadataContactComponent {
132
132
@Output ( ) contactClick = new EventEmitter < Individual > ( )
133
133
}
134
134
135
- @Component ( {
136
- // eslint-disable-next-line @angular-eslint/component-selector
137
- selector : 'gn-ui-metadata-catalog' ,
138
- template : '<div></div>' ,
139
- } )
140
- export class MockMetadataCatalogComponent {
141
- @Input ( ) sourceLabel : string
142
- }
143
-
144
135
@Component ( {
145
136
// eslint-disable-next-line @angular-eslint/component-selector
146
137
selector : 'gn-ui-record-api-form' ,
@@ -179,7 +170,6 @@ describe('RecordMetadataComponent', () => {
179
170
MockRelatedComponent ,
180
171
SearchResultsErrorComponent ,
181
172
MockMetadataInfoComponent ,
182
- MockMetadataCatalogComponent ,
183
173
MockMetadataContactComponent ,
184
174
MockRecordApiFormComponent ,
185
175
MockImgOverlayPreviewComponent ,
@@ -227,7 +217,6 @@ describe('RecordMetadataComponent', () => {
227
217
describe ( 'about' , ( ) => {
228
218
let metadataInfo : MockMetadataInfoComponent
229
219
let metadataContact : MockMetadataContactComponent
230
- let catalogComponent : MockMetadataCatalogComponent
231
220
232
221
beforeEach ( ( ) => {
233
222
facade . isPresent$ . next ( true )
@@ -238,9 +227,6 @@ describe('RecordMetadataComponent', () => {
238
227
metadataContact = fixture . debugElement . query (
239
228
By . directive ( MockMetadataContactComponent )
240
229
) . componentInstance
241
- catalogComponent = fixture . debugElement . query (
242
- By . directive ( MockMetadataCatalogComponent )
243
- ) . componentInstance
244
230
} )
245
231
describe ( 'if metadata present' , ( ) => {
246
232
it ( 'shows the full metadata' , ( ) => {
@@ -249,12 +235,6 @@ describe('RecordMetadataComponent', () => {
249
235
it ( 'shows the metadata contact' , ( ) => {
250
236
expect ( metadataContact . metadata ) . toHaveProperty ( 'contacts' )
251
237
} )
252
- it ( 'shows the metadata catalog' , ( ) => {
253
- expect ( sourcesService . getSourceLabel ) . toBeCalledWith (
254
- SAMPLE_RECORD . extras . catalogUuid
255
- )
256
- expect ( catalogComponent . sourceLabel ) . toEqual ( 'catalog label' )
257
- } )
258
238
} )
259
239
describe ( 'if metadata not present' , ( ) => {
260
240
beforeEach ( ( ) => {
@@ -273,11 +253,6 @@ describe('RecordMetadataComponent', () => {
273
253
fixture . debugElement . query ( By . directive ( MockMetadataContactComponent ) )
274
254
) . toBeFalsy ( )
275
255
} )
276
- it ( 'does not display the metadata catalog component' , ( ) => {
277
- expect (
278
- fixture . debugElement . query ( By . directive ( MockMetadataCatalogComponent ) )
279
- ) . toBeFalsy ( )
280
- } )
281
256
it ( 'does not display the image overlay preview' , ( ) => {
282
257
expect (
283
258
fixture . debugElement . query (
0 commit comments