diff --git a/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.spec.ts b/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.spec.ts index c258fef2cc..e29c81c0c5 100644 --- a/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.spec.ts +++ b/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.spec.ts @@ -1,8 +1,5 @@ import { ComponentFixture, TestBed } from '@angular/core/testing' -import { - MetadataQualityComponent, - MetadataQualityDisplay, -} from './metadata-quality.component' +import { MetadataQualityComponent } from './metadata-quality.component' import { DATASET_RECORDS } from '@geonetwork-ui/common/fixtures' import { MatIconModule } from '@angular/material/icon' import { CommonModule } from '@angular/common' @@ -55,9 +52,7 @@ describe('MetadataQualityComponent', () => { fixture = TestBed.createComponent(MetadataQualityComponent) component = fixture.componentInstance component.metadata = DATASET_RECORDS[0] - component.metadataQualityDisplay = { - widget: true, - } as MetadataQualityDisplay + component.metadataQualityDisplay = true component.initialize() fixture.detectChanges() }) diff --git a/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.stories.ts b/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.stories.ts index 6fae4ff811..cf67b7a402 100644 --- a/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.stories.ts +++ b/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.stories.ts @@ -1,9 +1,6 @@ import { Meta, moduleMetadata, StoryObj } from '@storybook/angular' import { DATASET_RECORDS } from '@geonetwork-ui/common/fixtures' -import { - MetadataQualityComponent, - MetadataQualityDisplay, -} from './metadata-quality.component' +import { MetadataQualityComponent } from './metadata-quality.component' import { CommonModule } from '@angular/common' import { TRANSLATE_DEFAULT_CONFIG, @@ -34,16 +31,6 @@ export const Primary: StoryObj = { args: { smaller: false, metadata: DATASET_RECORDS[0], - metadataQualityDisplay: { - widget: true, - title: true, - description: true, - topic: true, - keywords: true, - legalConstraints: true, - organisation: true, - contact: true, - updateFrequency: true, - } as MetadataQualityDisplay, + metadataQualityDisplay: true, }, }