( events: readonly Event[], )
| 37 | } |
| 38 | |
| 39 | function findRenamedEvent( |
| 40 | events: readonly Event[], |
| 41 | ): Extract<Event, { readonly type: 'session.meta.updated' }> { |
| 42 | const event = events.find((item) => item.type === 'session.meta.updated'); |
| 43 | if (event === undefined || event.type !== 'session.meta.updated') { |
| 44 | throw new Error('session_meta_updated event not found'); |
| 45 | } |
| 46 | return event; |
| 47 | } |
| 48 | |
| 49 | describe('SessionStore.rename', () => { |
| 50 | it('persists custom title state and preserves existing state fields', async () => { |
no outgoing calls
no test coverage detected