Skip to content

Commit

Permalink
Merge pull request #742 from geonetwork/fix-build-md-quality
Browse files Browse the repository at this point in the history
Remove non existent MetadataQualityDisplay import in tests & storybook to fix failing build
  • Loading branch information
jahow authored Dec 28, 2023
2 parents 6046f20 + fc37c69 commit 9ce2ff9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 22 deletions.
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -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()
})
Expand Down
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -34,16 +31,6 @@ export const Primary: StoryObj<MetadataQualityComponent> = {
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,
},
}

0 comments on commit 9ce2ff9

Please sign in to comment.