(store: { paneLayout: PaneLayout; activePaneId: string })
| 690 | |
| 691 | describe('preview tabs (VS Code-style open flow)', () => { |
| 692 | function activeLeaf(store: { paneLayout: PaneLayout; activePaneId: string }): PaneLeaf { |
| 693 | const leaf = findLeaf(store.paneLayout, store.activePaneId) |
| 694 | if (!leaf) throw new Error('no active leaf') |
| 695 | return leaf |
| 696 | } |
| 697 | |
| 698 | it('previews replace each other; a permanent re-open promotes the preview', async () => { |
| 699 | const noteA = { ...makeNote('alpha'), path: 'inbox/A.md', title: 'A' } |