mirror of
https://github.com/stablyai/orca.git
synced 2026-10-24 00:04:01 +00:00
test(renderer): follow extracted IPC shortcut bridge
This commit is contained in:
@@ -135,7 +135,10 @@ describe('Cmd/Ctrl+1-9 folder-workspace path gate (#10716)', () => {
|
||||
// Why: the guard only helps if the IPC handler actually calls it. Pin the source
|
||||
// so re-pointing the handler back at the unguarded activateAndRevealWorktree fails.
|
||||
it('wires onJumpToWorktreeIndex to the guarded workspace activator', async () => {
|
||||
const source = await readFile(new URL('../hooks/useIpcEvents.ts', import.meta.url), 'utf8')
|
||||
const source = await readFile(
|
||||
new URL('../hooks/ipc-events/workspace-shortcut-ipc-bridge.ts', import.meta.url),
|
||||
'utf8'
|
||||
)
|
||||
const handler = source.slice(
|
||||
source.indexOf('onJumpToWorktreeIndex('),
|
||||
source.indexOf('onJumpToTabIndex(')
|
||||
|
||||
Reference in New Issue
Block a user