From 45cb1c9b18744ef562065645b8af35c1dda873a7 Mon Sep 17 00:00:00 2001 From: kl4us Date: Sat, 5 Aug 2023 16:48:23 +0200 Subject: [PATCH] Convert some some pitch muuids objects to strings --- src/model/__tests__/MutableClimbDataSource.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/model/__tests__/MutableClimbDataSource.ts b/src/model/__tests__/MutableClimbDataSource.ts index 7755a0ef..a723aa0e 100644 --- a/src/model/__tests__/MutableClimbDataSource.ts +++ b/src/model/__tests__/MutableClimbDataSource.ts @@ -567,10 +567,10 @@ describe('Climb CRUD', () => { } // Store original pitch IDs and parent IDs - const originalPitch1ID = original.pitches[0]._id; - const originalPitch1ParentID = original.pitches[0].parent_id; - const originalPitch2ID = original.pitches[1]._id; - const originalPitch2ParentID = original.pitches[1].parent_id; + const originalPitch1ID = original.pitches[0]._id.toUUID().toString(); + const originalPitch1ParentID = original.pitches[0].parent_id.toUUID().toString(); + const originalPitch2ID = original.pitches[1]._id.toUUID().toString(); + const originalPitch2ParentID = original.pitches[1].parent_id.toUUID().toString(); const updatedPitch1 = { _id: originalPitch1ID,