diff --git a/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html b/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html index ee2d778187..2940b3c0ca 100644 --- a/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html +++ b/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html @@ -30,10 +30,20 @@ -

+

{{ metadata.lineage }}

{ beforeEach(() => { fixture = TestBed.createComponent(MetadataInfoComponent) component = fixture.componentInstance - component.metadata = DATASET_RECORDS[0] + component.metadata = { ...DATASET_RECORDS[0], lineage: null } fixture.detectChanges() }) it('should not display a message for no usage or constraints', () => { @@ -72,5 +72,11 @@ describe('MetadataInfoComponent', () => { fixture.nativeElement.querySelector('.md-description p') expect(displayedElement).toBeTruthy() }) + + it('should display the the metadata origin even if there is no lineage text', () => { + const displayedElement = + fixture.nativeElement.querySelector('.metadata-origin') + expect(displayedElement).toBeTruthy() + }) }) })