Release branch for 4.0.0.
This commit is contained in:
jubnl
2026-08-27 13:22:39 +02:00
committed by GitHub
parent e60427f813
commit 77dddd5e8a
3355 changed files with 403744 additions and 67215 deletions
@@ -46,4 +46,15 @@ describe('remoteEventHandler > packing', () => {
const { packingItems } = useTripStore.getState();
expect(packingItems).toHaveLength(0);
});
it('FE-WSEVT-PACK-005: packing:updated leaves the other items untouched', () => {
useTripStore.setState({
packingItems: [buildPackingItem({ id: 1, name: 'Sunscreen' }), buildPackingItem({ id: 2, name: 'Hat' })],
});
useTripStore.getState().handleRemoteEvent({
type: 'packing:updated',
item: buildPackingItem({ id: 2, name: 'Sun hat' }),
});
expect(useTripStore.getState().packingItems.map(i => i.name)).toEqual(['Sunscreen', 'Sun hat']);
});
});