Files
claude-code/src/commands/plan/index.test.ts
2026-05-01 21:39:30 +08:00

19 lines
590 B
TypeScript

import { describe, expect, test } from 'bun:test'
import plan from './index.js'
describe('plan bridge invocation safety', () => {
test('allows headless plan mode operations over Remote Control', () => {
expect(plan.getBridgeInvocationError?.('')).toBeUndefined()
expect(
plan.getBridgeInvocationError?.('write a migration plan'),
).toBeUndefined()
})
test('blocks /plan open over Remote Control', () => {
expect(plan.getBridgeInvocationError?.('open')).toBe(
"Opening the local editor via /plan open isn't available over Remote Control.",
)
})
})