From ec67fd5f3b0eda8b627e31465757f5fa981757f1 Mon Sep 17 00:00:00 2001
From: Tobias Kohr
{
component = fixture.componentInstance
component.metadata = {
...DATASET_RECORDS[0],
+ abstract: null,
useLimitations: null,
accessConstraints: null,
extras: {
@@ -40,6 +41,11 @@ describe('MetadataInfoComponent', () => {
fixture.nativeElement.querySelector('ng-container')
expect(displayedElement).toBeFalsy()
})
+ it('should not display the abstract section', () => {
+ const displayedElement =
+ fixture.nativeElement.querySelector('.md-description')
+ expect(displayedElement).toBeFalsy()
+ })
})
describe('When a section is not empty', () => {
@@ -53,7 +59,6 @@ describe('MetadataInfoComponent', () => {
const displayedElement = fixture.nativeElement.querySelector('.noUsage')
expect(displayedElement).toBeFalsy()
})
-
it('should display the keywords section', () => {
// Use waitForAsync to handle asynchronous changes in the DOM.
fixture.whenStable().then(() => {
@@ -62,5 +67,10 @@ describe('MetadataInfoComponent', () => {
expect(displayedElement).toBeTruthy()
})
})
+ it('should display the abstract section', () => {
+ const displayedElement =
+ fixture.nativeElement.querySelector('.md-description')
+ expect(displayedElement).toBeTruthy()
+ })
})
})
From 446a63cd3b94fcd73889ce40f3f229bdc9e11f56 Mon Sep 17 00:00:00 2001
From: Tobias Kohr