Skip to content

Commit

Permalink
chore: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jahow committed Sep 24, 2024
1 parent d8df3f0 commit 4219ecc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ describe('write parts', () => {
it('writes the record dates', () => {
const modified = {
...datasetRecord,
resourcePublished: new Date('2024-01-01T00:00:00Z'),
resourcePublished: new Date('2024-01-01T00:00:00'),
}
writeRecordCreated(modified, rootEl)
writeResourceCreated(modified, rootEl)
Expand Down Expand Up @@ -78,7 +78,7 @@ describe('write parts', () => {
<cit:date>
<cit:CI_Date>
<cit:date>
<gco:DateTime>2024-01-01T01:00:00</gco:DateTime>
<gco:DateTime>2024-01-01T00:00:00</gco:DateTime>
</cit:date>
<cit:dateType>
<cit:CI_DateTypeCode codeList="https://standards.iso.org/iso/19115/resources/Codelists/cat/codelists.xml#CI_DateTypeCode" codeListValue="publication">publication</cit:CI_DateTypeCode>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ describe('write parts', () => {
it('writes the record dates', () => {
const modified = {
...datasetRecord,
resourcePublished: new Date('2024-01-01T00:00:00Z'),
resourcePublished: new Date('2024-01-01T00:00:00'),
}
writeResourceCreated(modified, rootEl)
writeResourceUpdated(modified, rootEl)
Expand Down Expand Up @@ -70,7 +70,7 @@ describe('write parts', () => {
<gmd:date>
<gmd:CI_Date>
<gmd:date>
<gco:DateTime>2024-01-01T01:00:00</gco:DateTime>
<gco:DateTime>2024-01-01T00:00:00</gco:DateTime>
</gmd:date>
<gmd:dateType>
<gmd:CI_DateTypeCode codeList="http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#CI_DateTypeCode" codeListValue="publication"/>
Expand Down

0 comments on commit 4219ecc

Please sign in to comment.