Skip to content

Commit

Permalink
fix(md-converter): do not initialize updateFrequency with null
Browse files Browse the repository at this point in the history
  • Loading branch information
tkohr committed Nov 22, 2023
1 parent 74e14d6 commit fa4dc70
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ describe('Gn4MetadataMapper', () => {
website: new URL('http://my.org'),
},
status: null,
updateFrequency: null,
lineage: null,
recordUpdated: null,
distributions: [],
Expand Down Expand Up @@ -136,7 +135,6 @@ describe('Gn4MetadataMapper', () => {
website: new URL('http://my.org'),
},
status: null,
updateFrequency: null,
lineage: null,
recordUpdated: null,
distributions: [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export class Gn4MetadataMapper extends MetadataBaseMapper<Gn4Record> {
const emptyRecord: Partial<CatalogRecord> = {
kind: 'dataset',
status: null,
updateFrequency: null,
lineage: null,
recordUpdated: null,
ownerOrganization: null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,13 @@ describe('MetadataInfoComponent', () => {
})
})
describe('updateFrequency', () => {
describe('updateFrequency is null', () => {
describe('updateFrequency is not defined', () => {
beforeEach(() => {
fixture = TestBed.createComponent(MetadataInfoComponent)
component = fixture.componentInstance
component.metadata = {
...DATASET_RECORDS[0],
updateFrequency: null,
updateFrequency: undefined,
}
fixture.detectChanges()
})
Expand Down

0 comments on commit fa4dc70

Please sign in to comment.