(history: NavigationHistory<Entry>, ...entries: Entry[])
| 15 | const options: NavigationHistoryOptions<Entry> = { key: (entry) => `${entry.root ?? '*'}@${entry.depth}`, recentKey: (entry) => entry.root }; |
| 16 | const keys = (history: NavigationHistory<Entry>) => history.entries.map(options.key); |
| 17 | const push = (history: NavigationHistory<Entry>, ...entries: Entry[]) => entries.reduce((next, entry) => pushNavigation(next, entry, options), history); |
| 18 | |
| 19 | describe('bounded back and forward history', () => { |
| 20 | it('moves a cursor back and forward like a browser, and stops at both ends', () => { |
no test coverage detected