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