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 01c50c4 commit 0978e4b
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 @@ -88,13 +88,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 0978e4b

Please sign in to comment.