mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 21:04:23 +01:00
feat(tui): fuse all started results of a run from the run list
This commit is contained in:
1 parent
588bf7b12e
commit
f67a48b728
4 files changed
+19
-8
No files matched your search
@@ -298,6 +298,11 @@ describe('toggleFusionSource', () => {
|
||||
expect(toggleFusionSource(run, [1, 2], 1)).toEqual([2])
|
||||
})
|
||||
|
||||
it('keeps the selection in run order regardless of toggle order', () => {
|
||||
expect(toggleFusionSource(run, [4], 1)).toEqual([1, 4])
|
||||
expect(toggleFusionSource(run, [5, 2], 4)).toEqual([2, 4, 5])
|
||||
})
|
||||
|
||||
it('ignores entries that are not started and selections past the model limit', () => {
|
||||
expect(toggleFusionSource(run, [], 3)).toEqual([])
|
||||
expect(toggleFusionSource(run, [1, 2, 4, 5, 6], 99)).toEqual([1, 2, 4, 5, 6])
|
||||
|
||||
Reference in new issue
Block a user