From cce4d2749e41bd8bd73953980e4e1b15215c9a80 Mon Sep 17 00:00:00 2001 From: Tyler Nullmeier Date: Tue, 25 Jun 2024 12:47:58 -0500 Subject: [PATCH] Update tests for fix-document-ids I assume md:title was there to test that ids were not added to metadata elements I replaced it with md:uuid to test the same condition --- server/src/__snapshots__/fix-document-ids.spec.ts.snap | 6 +++--- server/src/fix-document-ids.spec.ts | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/server/src/__snapshots__/fix-document-ids.spec.ts.snap b/server/src/__snapshots__/fix-document-ids.spec.ts.snap index b6359136..c052cd35 100644 --- a/server/src/__snapshots__/fix-document-ids.spec.ts.snap +++ b/server/src/__snapshots__/fix-document-ids.spec.ts.snap @@ -4,7 +4,7 @@ exports[`Element ID creation fixDocument check if ids are created 1`] = ` " Introduction - Introduction + 00000000-0000-0000-0000-000000000000 Test Introduction @@ -17,7 +17,7 @@ exports[`Element ID creation fixDocument check if ids are generated with right ( " Introduction - Introduction + 00000000-0000-0000-0000-000000000000 no id here @@ -46,7 +46,7 @@ exports[`Element ID creation fixDocument check if term in defintion does not get " Introduction - Introduction + 00000000-0000-0000-0000-000000000000 diff --git a/server/src/fix-document-ids.spec.ts b/server/src/fix-document-ids.spec.ts index 3b579800..5b16d7b2 100644 --- a/server/src/fix-document-ids.spec.ts +++ b/server/src/fix-document-ids.spec.ts @@ -12,7 +12,7 @@ describe('Element ID creation', () => { const simple = ` Introduction - Introduction + 00000000-0000-0000-0000-000000000000 Test Introduction @@ -28,7 +28,7 @@ describe('Element ID creation', () => { const paraPartialId = ` Introduction - Introduction + 00000000-0000-0000-0000-000000000000
@@ -62,7 +62,7 @@ describe('Element ID creation', () => { const xml = ` Introduction - Introduction + 00000000-0000-0000-0000-000000000000 no id here @@ -94,7 +94,7 @@ describe('Element ID creation', () => { const xml = ` Introduction - Introduction + 00000000-0000-0000-0000-000000000000