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 > todo', () => {
const { todoItems } = useTripStore.getState();
expect(todoItems).toHaveLength(0);
});
it('FE-WSEVT-TODO-005: todo:updated leaves the other items untouched', () => {
useTripStore.setState({
todoItems: [buildTodoItem({ id: 1, name: 'Book flights' }), buildTodoItem({ id: 2, name: 'Renew passport' })],
});
useTripStore.getState().handleRemoteEvent({
type: 'todo:updated',
item: buildTodoItem({ id: 2, name: 'Renew passport (done)' }),
});
expect(useTripStore.getState().todoItems.map(i => i.name)).toEqual(['Book flights', 'Renew passport (done)']);
});
});