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