From 4219ecc3d3b2faf72d9d1c3fa4962e8cd718b0b5 Mon Sep 17 00:00:00 2001 From: Olivia Guyot Date: Tue, 24 Sep 2024 23:53:03 +0200 Subject: [PATCH] chore: fix tests --- .../metadata-converter/src/lib/iso19115-3/write-parts.spec.ts | 4 ++-- .../metadata-converter/src/lib/iso19139/write-parts.spec.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.spec.ts b/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.spec.ts index 7bd1e6633e..0a92d0800c 100644 --- a/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.spec.ts +++ b/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.spec.ts @@ -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) @@ -78,7 +78,7 @@ describe('write parts', () => { - 2024-01-01T01:00:00 + 2024-01-01T00:00:00 publication diff --git a/libs/api/metadata-converter/src/lib/iso19139/write-parts.spec.ts b/libs/api/metadata-converter/src/lib/iso19139/write-parts.spec.ts index 7c038e5df4..820c0edb5a 100644 --- a/libs/api/metadata-converter/src/lib/iso19139/write-parts.spec.ts +++ b/libs/api/metadata-converter/src/lib/iso19139/write-parts.spec.ts @@ -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) @@ -70,7 +70,7 @@ describe('write parts', () => { - 2024-01-01T01:00:00 + 2024-01-01T00:00:00