test: pin the empty-metadata payload and the payer-less share

Two suites encoded the behaviour this branch changes: MReservationSheet
asserted the literal metadata: null the forms no longer send, and the new
Your-share case reached for a label that is a card footer rather than a
heading.
This commit is contained in:
Maurice
2026-09-06 14:18:08 +02:00
committed by Maurice
parent 0a35ce83a5
commit 8a48131618
2 changed files with 9 additions and 6 deletions
@@ -210,7 +210,7 @@ describe('MReservationSheet', () => {
reservation_time: null, reservation_end_time: null,
location: '', confirmation_number: '', notes: '', url: '',
assignment_id: null, accommodation_id: null, place_id: null,
metadata: null, endpoints: [], needs_review: false,
metadata: {}, endpoints: [], needs_review: false,
})
})
@@ -447,7 +447,7 @@ describe('MReservationSheet', () => {
setup(makePlanner({
editingReservation: {
id: 57, title: 'Museum', type: undefined, status: undefined,
reservation_time: null, reservation_end_time: null, metadata: null,
reservation_time: null, reservation_end_time: null, metadata: {},
} as unknown as Reservation,
}))
expect(titleField()).toHaveValue('Museum')