mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 12:54:20 +01:00
Apply remaining changes
This commit is contained in:
1 parent
5846ee3c20
commit
8af2c189e9
33 files changed
+576
-130
No files matched your search
@@ -221,6 +221,20 @@ describe('useSessionPickerNavigation', () => {
|
||||
expect(onClose).toHaveBeenCalledTimes(1)
|
||||
})
|
||||
|
||||
it('returns to the home route when the open chat session is deleted', () => {
|
||||
const { result, onClose, location } = renderPickerNavigation(
|
||||
['/chats/20240102120000-aaaaaa/sessions/a?mobileTab=sessions'],
|
||||
{ mode: 'push' },
|
||||
)
|
||||
|
||||
act(() => {
|
||||
result.current.onDeleteActiveSession()
|
||||
})
|
||||
|
||||
expect(location()).toBe('/ PUSH')
|
||||
expect(onClose).toHaveBeenCalledTimes(1)
|
||||
})
|
||||
|
||||
it('closes the picker without navigating when the session is already open', () => {
|
||||
const { result, onClose, location } = renderPickerNavigation(
|
||||
['/repos/1/sessions/a?mobileTab=sessions'],
|
||||
|
||||
Reference in new issue
Block a user